Make FTE slightly more likely to work on gles<3 when configured for 32bit indexes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5859 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d5beed038f
commit
2b2e7c76c4
1 changed files with 9 additions and 8 deletions
|
@ -534,14 +534,6 @@ static qboolean GL_CheckExtensions (void *(*getglfunction) (char *name))
|
|||
//yes, I know, this can't cope with minor versions of 10+... I don't care yet.
|
||||
gl_config.glversion += gl_major_version + (gl_minor_version/10.f);
|
||||
|
||||
#if GL_INDEX_TYPE == GL_UNSIGNED_INT
|
||||
if (gl_config_gles && gl_config.glversion < 3.0)
|
||||
{ //opengles 1 and 2 do NOT support 32bit indexes. desktop gl always does but es supports it starting with gles3.0
|
||||
Con_Printf ("Support for OpenGL ES 3.0 is required.\n");
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*gl3 adds glGetStringi instead, as core, with the old form require GL_ARB_compatibility*/
|
||||
if (gl_major_version >= 3 && qglGetStringi) /*warning: wine fails to export qglGetStringi*/
|
||||
{
|
||||
|
@ -654,6 +646,15 @@ static qboolean GL_CheckExtensions (void *(*getglfunction) (char *name))
|
|||
else
|
||||
gl_config.maxglslversion = 110;
|
||||
|
||||
|
||||
#if GL_INDEX_TYPE == GL_UNSIGNED_INT
|
||||
if (gl_config_gles && gl_config.glversion < 3.0 && !GL_CheckExtension("GL_OES_element_index_uint"))
|
||||
{ //opengles 1 and 2 do NOT support 32bit indexes. desktop gl always does but es supports it starting with gles3.0
|
||||
Con_Printf ("Support for OpenGL ES 3.0 is required.\n");
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
//multitexture
|
||||
gl_mtexable = false;
|
||||
gl_mtexarbable = 0;
|
||||
|
|
Loading…
Reference in a new issue