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 58f376b8af317b2eb063c73d6e4bfa59905fcfb6..c71e16a1e5685fc4dda0b6ea7220c3ec62834eaf 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);
 }