engine: platform: sdl: make GL_CreateContext and GL_DeleteContext functions static

This commit is contained in:
Alibek Omarov 2023-04-03 03:13:19 +03:00
parent 597027277c
commit a8de11643c
2 changed files with 2 additions and 4 deletions

View File

@ -25,8 +25,6 @@ void VID_RestoreScreenResolution( void );
qboolean VID_CreateWindow( int width, int height, qboolean fullscreen ); qboolean VID_CreateWindow( int width, int height, qboolean fullscreen );
void VID_DestroyWindow( void ); void VID_DestroyWindow( void );
void GL_InitExtensions( void ); void GL_InitExtensions( void );
qboolean GL_CreateContext( void );
qboolean GL_UpdateContext( void );
qboolean GL_DeleteContext( void ); qboolean GL_DeleteContext( void );
void VID_SaveWindowSize( int width, int height ); void VID_SaveWindowSize( int width, int height );

View File

@ -491,7 +491,7 @@ qboolean GL_DeleteContext( void )
GL_CreateContext GL_CreateContext
================= =================
*/ */
qboolean GL_CreateContext( void ) static qboolean GL_CreateContext( void )
{ {
#if SDL_VERSION_ATLEAST(2, 0, 0) #if SDL_VERSION_ATLEAST(2, 0, 0)
if( ( glw_state.context = SDL_GL_CreateContext( host.hWnd ) ) == NULL) if( ( glw_state.context = SDL_GL_CreateContext( host.hWnd ) ) == NULL)
@ -508,7 +508,7 @@ qboolean GL_CreateContext( void )
GL_UpdateContext GL_UpdateContext
================= =================
*/ */
qboolean GL_UpdateContext( void ) static qboolean GL_UpdateContext( void )
{ {
#if SDL_VERSION_ATLEAST( 2, 0, 0 ) #if SDL_VERSION_ATLEAST( 2, 0, 0 )
if( SDL_GL_MakeCurrent( host.hWnd, glw_state.context )) if( SDL_GL_MakeCurrent( host.hWnd, glw_state.context ))