From bb8ba4225c0dd5c343f5b26a94024b41eaded9d8 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 12 May 2019 03:04:26 +0300 Subject: [PATCH] ref_gl: show r_info after loading extensions, add GL_GetProcAddress call --- ref_gl/gl_opengl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ref_gl/gl_opengl.c b/ref_gl/gl_opengl.c index d03ef7f9..b3d04057 100644 --- a/ref_gl/gl_opengl.c +++ b/ref_gl/gl_opengl.c @@ -372,6 +372,18 @@ void GL_CheckExtension( const char *name, const dllfunc_t *funcs, const char *cv else gEngfuncs.Con_Reportf( "- ^1failed\n" ); } +/* +============== +GL_GetProcAddress + +defined just for nanogl/glwes, so it don't link to SDL2 directly, nor use dlsym +============== +*/ +void GAME_EXPORT *GL_GetProcAddress( const char *name ) +{ + return gEngfuncs.GL_GetProcAddress( name ); +} + /* =============== GL_SetDefaultTexState @@ -709,6 +721,8 @@ void GL_InitExtensions( void ) GL_InitExtensionsBigGL(); #endif + R_RenderInfo_f(); + // enable gldebug if allowed if( GL_Support( GL_DEBUG_OUTPUT )) {