[Mesa-dev] [PATCH 03/12] mesa/es: Disallow BGRA vertex arrays in ES or ES2 contexts

Ian Romanick idr at freedesktop.org
Wed Aug 22 19:26:16 PDT 2012


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/mesa/main/varray.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 36d0eb8..a867c89 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -142,6 +142,11 @@ update_array(struct gl_context *ctx,
                           | UNSIGNED_INT_2_10_10_10_REV_BIT
                           | INT_2_10_10_10_REV_BIT
                           | HALF_BIT | DOUBLE_BIT);
+
+      /* BGRA ordering is not supported in ES contexts.
+       */
+      if (sizeMax == BGRA_OR_4)
+         sizeMax = 4;
    } else {
       assert(ctx->API == API_OPENGL);
 
-- 
1.7.6.5



More information about the mesa-dev mailing list