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 <[email protected]>
---
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
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev