Browse Source

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

pull/2/head
Alibek Omarov 2 years ago
parent
commit
a8de11643c
  1. 2
      engine/platform/sdl/events.h
  2. 4
      engine/platform/sdl/vid_sdl.c

2
engine/platform/sdl/events.h

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

4
engine/platform/sdl/vid_sdl.c

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

Loading…
Cancel
Save