mesa: allow GLfixed arrays for OpenGL ES 2.0

Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Shuang He 2010-12-09 08:49:51 +08:00 committed by Brian Paul
parent 0c0eda393a
commit 9946f15d30
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}