OSDN Git Service

mesa/varray: set double arrays to non-normalised.
authorDave Airlie <airlied@redhat.com>
Thu, 10 Dec 2015 00:36:42 +0000 (10:36 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Dec 2015 03:51:44 +0000 (13:51 +1000)
Doesn't have any effect in practice I don't think, but
CTS reads back using GetVertexAttrib.

This fixes: GL41-CTS.vertex_attrib_64bit.get_vertex_attrib

Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/varray.c

index 58f376b..c71e16a 100644 (file)
@@ -776,7 +776,7 @@ _mesa_VertexAttribLPointer(GLuint index, GLint size, GLenum type,
 
    update_array(ctx, "glVertexAttribLPointer", VERT_ATTRIB_GENERIC(index),
                 legalTypes, 1, 4,
-                size, type, stride, GL_TRUE, GL_FALSE, GL_TRUE, ptr);
+                size, type, stride, GL_FALSE, GL_FALSE, GL_TRUE, ptr);
 }