mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: platform: sdl: make GL_CreateContext and GL_DeleteContext functions static
This commit is contained in:
parent
597027277c
commit
a8de11643c
@ -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 );
|
||||
|
||||
|
@ -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 )
|
||||
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…
x
Reference in New Issue
Block a user