Mesa (gles3): mesa: Add ES 3 handling to get.c

Matt Turner mattst88 at kemper.freedesktop.org
Tue Nov 20 04:19:39 UTC 2012


Module: Mesa
Branch: gles3
Commit: bce821a20a525d765a3a6118dd959ce892d095b1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bce821a20a525d765a3a6118dd959ce892d095b1

Author: Matt Turner <mattst88 at gmail.com>
Date:   Thu Nov 15 15:47:18 2012 -0800

mesa: Add ES 3 handling to get.c

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/main/get.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index e1ebd18..a020643 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -130,6 +130,7 @@ enum value_extra {
    EXTRA_VERSION_32,
    EXTRA_API_GL,
    EXTRA_API_ES2,
+   EXTRA_API_ES3,
    EXTRA_NEW_BUFFERS, 
    EXTRA_NEW_FRAG_CLAMP,
    EXTRA_VALID_DRAW_BUFFER,
@@ -873,6 +874,12 @@ check_extra(struct gl_context *ctx, const char *func, const struct value_desc *d
 	    enabled++;
 	 }
 	 break;
+      case EXTRA_API_ES3:
+	 if (_mesa_is_gles3(ctx)) {
+	    total++;
+	    enabled++;
+	 }
+	 break;
       case EXTRA_API_GL:
 	 if (_mesa_is_desktop_gl(ctx)) {
 	    total++;




More information about the mesa-commit mailing list