Skip to content

Commit

Permalink
engine: client: GetRefAPI now must return REF_API_VERSION to prevent …
Browse files Browse the repository at this point in the history
…possible issue when ref library wasn't recompiled on version bump
  • Loading branch information
a1batross committed Dec 5, 2023
1 parent a7a10bf commit f5bc4b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/client/ref_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ static qboolean R_LoadProgs( const char *name )
// make local copy of engfuncs to prevent overwrite it with user dll
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 );
Con_Reportf( "R_LoadProgs: can't init renderer API: wrong version\n" );
Expand Down

0 comments on commit f5bc4b8

Please sign in to comment.