From a8de11643c4a148100416a5e3ed220543c99ca11 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 3 Apr 2023 03:13:19 +0300 Subject: [PATCH] engine: platform: sdl: make GL_CreateContext and GL_DeleteContext functions static --- engine/platform/sdl/events.h | 2 -- engine/platform/sdl/vid_sdl.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/engine/platform/sdl/events.h b/engine/platform/sdl/events.h index e42df28e..a47c40a0 100644 --- a/engine/platform/sdl/events.h +++ b/engine/platform/sdl/events.h @@ -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 ); diff --git a/engine/platform/sdl/vid_sdl.c b/engine/platform/sdl/vid_sdl.c index e23b7358..cf0d697f 100644 --- a/engine/platform/sdl/vid_sdl.c +++ b/engine/platform/sdl/vid_sdl.c @@ -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 ))