[Glamor] [PATCH 09/34] glamor: Fix typo in setting v_position's attrib location.

Alex Deucher alexdeucher at gmail.com
Fri Feb 28 10:02:04 PST 2014


From: Eric Anholt <eric at anholt.net>

Assuming it was the first attribute assigned by the GL, it would have
ended up with location 0 anyway.

Ported from Eric's glamor xserver tree.

Signed-off-by: Eric Anholt <eric at anholt.net>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 src/glamor_gradient.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glamor_gradient.c b/src/glamor_gradient.c
index 4abc82d..3648ade 100644
--- a/src/glamor_gradient.c
+++ b/src/glamor_gradient.c
@@ -391,7 +391,7 @@ _glamor_create_radial_gradient_program(ScreenPtr screen, int stops_count, int dy
 	dispatch->glAttachShader(gradient_prog, fs_getcolor_prog);
 	dispatch->glAttachShader(gradient_prog, fs_main_prog);
 
-	dispatch->glBindAttribLocation(gradient_prog, GLAMOR_VERTEX_POS, "v_positionsition");
+	dispatch->glBindAttribLocation(gradient_prog, GLAMOR_VERTEX_POS, "v_position");
 	dispatch->glBindAttribLocation(gradient_prog, GLAMOR_VERTEX_SOURCE, "v_texcoord");
 
 	glamor_link_glsl_prog(dispatch, gradient_prog);
-- 
1.8.3.1



More information about the Glamor mailing list