mesa/es: Disallow BGRA vertex arrays in ES or ES2 contexts
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 25 Jul 2012 21:46:54 +0000 (14:46 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 25 Aug 2012 02:13:17 +0000 (19:13 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/varray.c

index 54fe073..b1d65ed 100644 (file)
@@ -150,6 +150,11 @@ update_array(struct gl_context *ctx,
                              | UNSIGNED_INT_2_10_10_10_REV_BIT
                              | INT_2_10_10_10_REV_BIT);
       }
+
+      /* BGRA ordering is not supported in ES contexts.
+       */
+      if (sizeMax == BGRA_OR_4)
+         sizeMax = 4;
    } else {
       legalTypesMask &= ~FIXED_ES_BIT;