mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-26 06:45:08 +00:00
engine: client: GetRefAPI now must return REF_API_VERSION to prevent possible issue when ref library wasn't recompiled on version bump
This commit is contained in:
parent
26d229c8ca
commit
1612e2d669
@ -425,7 +425,7 @@ static qboolean R_LoadProgs( const char *name )
|
|||||||
// make local copy of engfuncs to prevent overwrite it with user dll
|
// make local copy of engfuncs to prevent overwrite it with user dll
|
||||||
memcpy( &gpEngfuncs, &gEngfuncs, sizeof( gpEngfuncs ));
|
memcpy( &gpEngfuncs, &gEngfuncs, sizeof( gpEngfuncs ));
|
||||||
|
|
||||||
if( !GetRefAPI( REF_API_VERSION, &ref.dllFuncs, &gpEngfuncs, &refState ))
|
if( GetRefAPI( REF_API_VERSION, &ref.dllFuncs, &gpEngfuncs, &refState ) != REF_API_VERSION )
|
||||||
{
|
{
|
||||||
COM_FreeLibrary( ref.hInstance );
|
COM_FreeLibrary( ref.hInstance );
|
||||||
Con_Reportf( "R_LoadProgs: can't init renderer API: wrong version\n" );
|
Con_Reportf( "R_LoadProgs: can't init renderer API: wrong version\n" );
|
||||||
|
@ -37,6 +37,7 @@ GNU General Public License for more details.
|
|||||||
// 5. Removed GetSomethingByIndex calls, renderers are supposed to cache pointer values
|
// 5. Removed GetSomethingByIndex calls, renderers are supposed to cache pointer values
|
||||||
// Removed previously unused calls
|
// Removed previously unused calls
|
||||||
// Simplified remapping calls
|
// Simplified remapping calls
|
||||||
|
// GetRefAPI is now expected to return REF_API_VERSION
|
||||||
#define REF_API_VERSION 5
|
#define REF_API_VERSION 5
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user