engine: ref_api: fix typo in the comment (thanks @lewa_j)

This commit is contained in:
Alibek Omarov
2025-10-02 19:21:39 +05:00
parent cb7094bb2d
commit e8d8d90b39
2 changed files with 5 additions and 2 deletions

View File

@@ -1182,8 +1182,11 @@ ref_window_type_t R_GetWindowHandle( void **handle, ref_window_type_t type )
SDL_VERSION( &wmInfo.version );
if( SDL_GetWindowWMInfo( host.hWnd, &wmInfo ))
if( !SDL_GetWindowWMInfo( host.hWnd, &wmInfo ))
{
Con_Reportf( S_ERROR "%s: SDL_GetWindowWMInfo: %s\n", __func__, SDL_GetError( ));
return REF_WINDOW_TYPE_NULL;
}
switch( wmInfo.subsystem )
{

View File

@@ -671,7 +671,7 @@ typedef int (*REFAPI)( int version, ref_interface_t *pFunctionTable, ref_api_t*
#define ENGINE_SHARED_CVAR( f, x ) ENGINE_SHARED_CVAR_NAME( f, x, x )
// cvars that's logic is shared between renderer and engine
// actually, they are just created on engine side for convinience
// actually, they are just created on engine side for convenience
// and must be retrieved by renderer side
// sometimes it's done to standartize cvars to make it easier for users
#define ENGINE_SHARED_CVAR_LIST( f ) \