summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShuang He <shuang.he@intel.com>2010-12-09 08:49:51 +0800
committerBrian Paul <brianp@vmware.com>2010-12-09 08:23:54 -0700
commit9946f15d302d48a0bc0ab0b8a3556c184e88c7d0 (patch)
tree4c9b84761e2bd792ac37482bc597f07af8e53b5f
parent0c0eda393ad5048528f2664d03046ff7f7d3a64c (diff)
mesa: allow GLfixed arrays for OpenGL ES 2.0
Signed-off-by: Brian Paul <brianp@vmware.com>
-rw-r--r--src/mesa/main/varray.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 2728b38226..32bf95e3ed 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -127,8 +127,8 @@ update_array(struct gl_context *ctx,
GLsizei elementSize;
GLenum format = GL_RGBA;
- if (ctx->API != API_OPENGLES) {
- /* fixed point arrays / data is only allowed with OpenGL ES 1.x */
+ if (ctx->API != API_OPENGLES && ctx->API != API_OPENGLES2) {
+ /* fixed point arrays / data is only allowed with OpenGL ES 1.x/2.0 */
legalTypesMask &= ~FIXED_BIT;
}