From: Shuang He Date: Thu, 9 Dec 2010 00:49:51 +0000 (+0800) Subject: mesa: allow GLfixed arrays for OpenGL ES 2.0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9946f15d302d48a0bc0ab0b8a3556c184e88c7d0;p=mesa.git mesa: allow GLfixed arrays for OpenGL ES 2.0 Signed-off-by: Brian Paul --- diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 2728b382262..32bf95e3ed1 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; }