[Mesa-dev] [PATCH 01/27] mesa: Use MESA_GL_VERSION_OVERRIDE in compute_version_es2()

Anuj Phogat anuj.phogat at gmail.com
Fri Oct 19 16:28:36 PDT 2012


Mesa master currently tests for gles3 using:
_mesa_is_gles3(const struct gl_context *ctx) {
   return ctx->API == API_OPENGLES2 && ctx->Version >= 30;
}

I made this temporary change in compute_version_es2() function to enable
the testing of ETC2 patches on my mesa branch. This patch will not be
pushed upstream.

Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
 src/mesa/main/version.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index bc7b1fa..37ba097 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -289,6 +289,8 @@ compute_version_es2(struct gl_context *ctx)
       _mesa_problem(ctx, "Incomplete OpenGL ES 2.0 support.");
    }
 
+   override_version(ctx);
+
    ctx->VersionString = malloc(max);
    if (ctx->VersionString) {
       _mesa_snprintf(ctx->VersionString, max,
-- 
1.7.7.6



More information about the mesa-dev mailing list