From e8d8d90b394c8d2bf792e96250ad8119907a589c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 2 Oct 2025 19:21:39 +0500 Subject: [PATCH] engine: ref_api: fix typo in the comment (thanks @lewa_j) --- engine/platform/sdl2/vid_sdl2.c | 5 ++++- engine/ref_api.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/platform/sdl2/vid_sdl2.c b/engine/platform/sdl2/vid_sdl2.c index fcebea5f..6eb58ef6 100644 --- a/engine/platform/sdl2/vid_sdl2.c +++ b/engine/platform/sdl2/vid_sdl2.c @@ -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 ) { diff --git a/engine/ref_api.h b/engine/ref_api.h index c6adf2b3..e87397eb 100644 --- a/engine/ref_api.h +++ b/engine/ref_api.h @@ -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 ) \