From e98bd86e0a2f03d87e7987d4f520f804738a201e Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 7 Dec 2010 12:33:39 +0000 Subject: [PATCH] cogl-shader-boilerplate: Don't put the color attrib in location 0 Due to Mesa bug 28585 calling glVertexAttrib with attrib location 0 doesn't appear to work. This patch just reorders the vertex and color attributes in the shader in the hope that Mesa will assign the color attribute to a different location. --- cogl/cogl-shader-boilerplate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-shader-boilerplate.h b/cogl/cogl-shader-boilerplate.h index f9a817fc6..115e84bdf 100644 --- a/cogl/cogl-shader-boilerplate.h +++ b/cogl/cogl-shader-boilerplate.h @@ -92,8 +92,8 @@ "#define cogl_position_out gl_Position\n" \ "#define cogl_point_size_out gl_PointSize\n" \ "\n" \ - "attribute vec4 cogl_position_in;\n" \ "attribute vec4 cogl_color_in;\n" \ + "attribute vec4 cogl_position_in;\n" \ "#define cogl_tex_coord_in cogl_tex_coord0_in;\n" \ "attribute vec3 cogl_normal_in;\n" \ "\n" \