summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2012-07-25 14:46:54 -0700
committerIan Romanick <[email protected]>2012-08-24 19:13:17 -0700
commit946ddec163b9360be44e7db04ce67a2165daa3b7 (patch)
tree0131231fa6678cbecbe7662778255f5f53139857 /src/mesa/main
parentbbceed268e14593a07a7cc08060ffd20f2718718 (diff)
mesa/es: Disallow BGRA vertex arrays in ES or ES2 contexts
Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/varray.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 54fe0739aff..b1d65ed6b90 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -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;