mesa: OpenGL ES 1.1 is not optional

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14213>
This commit is contained in:
Ian Romanick 2021-12-14 17:55:21 -08:00 committed by Marge Bot
parent b04a186296
commit 4d2937ff92
1 changed files with 1 additions and 12 deletions

View File

@ -477,17 +477,6 @@ compute_version(const struct gl_extensions *extensions,
return version;
}
static GLuint
compute_version_es1(const struct gl_extensions *extensions)
{
/* OpenGL ES 1.0 is derived from OpenGL 1.3, which is always supported.
* OpenGL ES 1.1 is derived from OpenGL 1.5.
*/
const bool ver_1_1 = true;
return ver_1_1 ? 11 : 10;
}
static GLuint
compute_version_es2(const struct gl_extensions *extensions,
const struct gl_constants *consts)
@ -592,7 +581,7 @@ _mesa_get_version(const struct gl_extensions *extensions,
case API_OPENGL_CORE:
return compute_version(extensions, consts, api);
case API_OPENGLES:
return compute_version_es1(extensions);
return 11;
case API_OPENGLES2:
return compute_version_es2(extensions, consts);
}