projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbceed2
)
mesa/es: Disallow BGRA vertex arrays in ES or ES2 contexts
author
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 25 Jul 2012 21:46:54 +0000
(14:46 -0700)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/varray.c
b/src/mesa/main/varray.c
index
54fe073
..
b1d65ed
100644
(file)
--- 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;