Mesa (master): mesa: allow GLfixed arrays for OpenGL ES 2.0

Brian Paul brianp at kemper.freedesktop.org
Thu Dec 9 15:24:05 UTC 2010


Module: Mesa
Branch: master
Commit: 9946f15d302d48a0bc0ab0b8a3556c184e88c7d0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9946f15d302d48a0bc0ab0b8a3556c184e88c7d0

Author: Shuang He <shuang.he at intel.com>
Date:   Thu Dec  9 08:49:51 2010 +0800

mesa: allow GLfixed arrays for OpenGL ES 2.0

Signed-off-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/main/varray.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 2728b38..32bf95e 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;
    }
 




More information about the mesa-commit mailing list