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
This commit is contained in:
parent
3343370115
commit
627fe505b9
1 changed files with 5 additions and 0 deletions
|
@ -24,7 +24,12 @@ extern qboolean mouseusedforgui;
|
||||||
|
|
||||||
static void *GLVID_getsdlglfunction(char *functionname)
|
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);
|
return SDL_GL_GetProcAddress(functionname);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
qboolean GLVID_Init (rendererstate_t *info, unsigned char *palette)
|
qboolean GLVID_Init (rendererstate_t *info, unsigned char *palette)
|
||||||
|
|
Loading…
Reference in a new issue