From 627fe505b9e1ab1e986fee35e9bd0e67df0b0cdc Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 6 Aug 2013 02:20:56 +0000 Subject: [PATCH] Fix some of the issues highlighted by the emscripten port. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4453 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidsdl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/gl/gl_vidsdl.c b/engine/gl/gl_vidsdl.c index 87df6e6b9..fab4f261b 100644 --- a/engine/gl/gl_vidsdl.c +++ b/engine/gl/gl_vidsdl.c @@ -24,7 +24,12 @@ extern qboolean mouseusedforgui; static void *GLVID_getsdlglfunction(char *functionname) { +#ifdef GL_STATIC + //this reduces dependancies in the webgl build (removing warnings about emulation being poo) + return NULL; +#else return SDL_GL_GetProcAddress(functionname); +#endif } qboolean GLVID_Init (rendererstate_t *info, unsigned char *palette)