Fix emscripten.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5537 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2019-09-05 16:01:13 +00:00
parent 5b7e52eda4
commit 474f01d553

View file

@ -3335,6 +3335,11 @@ qboolean GL_Init(rendererstate_t *info, void *(*getglfunction) (char *name))
qglBindBufferARB = (void *)getglext("glBindBuffer");
if (!qglBindBufferARB)
qglBindBufferARB = GL_BindBufferARBStub;
if (gl_config.glversion >= 3.0)
qglGenerateMipmap = (void *)getglext("glGenerateMipmap");
else
qglGenerateMipmap = NULL;
#endif
if (!qglGetString)
@ -3352,11 +3357,6 @@ qboolean GL_Init(rendererstate_t *info, void *(*getglfunction) (char *name))
GL_CheckExtensions (getglfunction);
if (gl_config.glversion >= 3.0)
qglGenerateMipmap = (void *)getglext("glGenerateMipmap");
else
qglGenerateMipmap = NULL;
#ifndef FTE_TARGET_WEB
if (!gl_config.gles)
{