From ddf070b63d04b088a0d3d158cb16be343e7a4110 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 6 Oct 2019 06:55:04 +0300 Subject: [PATCH] ref_gl: fix build --- ref_gl/gl-wes-v2 | 2 +- ref_gl/gl_opengl.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ref_gl/gl-wes-v2 b/ref_gl/gl-wes-v2 index d1e441dc..c5d2f80a 160000 --- a/ref_gl/gl-wes-v2 +++ b/ref_gl/gl-wes-v2 @@ -1 +1 @@ -Subproject commit d1e441dca75b9277486bb23682c2c5772aa38478 +Subproject commit c5d2f80ad936d30d3c0503a21df7467ce9c87779 diff --git a/ref_gl/gl_opengl.c b/ref_gl/gl_opengl.c index 19595bd2..68d8951a 100644 --- a/ref_gl/gl_opengl.c +++ b/ref_gl/gl_opengl.c @@ -1111,11 +1111,13 @@ void GL_SetupAttributes( int safegl ) } } +void wes_init( const char *gles2 ); +int nanoGL_Init( void ); + void GL_OnContextCreated( void ) { int colorBits[3]; #ifdef XASH_NANOGL - int nanoGL_Init( void ); nanoGL_Init(); #endif @@ -1132,7 +1134,6 @@ void GL_OnContextCreated( void ) gEngfuncs.GL_GetAttribute( REF_GL_MULTISAMPLESAMPLES, &glConfig.msaasamples ); #ifdef XASH_WES - void wes_init( const char *gles2 ); wes_init( "" ); #endif }