Module: Mesa
Branch: marge_bot_batch_merge_job
Commit: 08e13e6193b63695a13a66d26b4ada407ef006d3
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=08e13e6193b63695a13a66d26b4ada407ef006d3

Author: Ian Romanick <[email protected]>
Date:   Tue Dec 14 17:55:21 2021 -0800

mesa: OpenGL ES 1.1 is not optional

Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14213>

---

 src/mesa/main/version.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index b35f0903215..92f5db4126a 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -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);
    }

Reply via email to