summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2014-02-28 13:02:04 -0500
committerZhigang Gong <zhigang.gong@gmail.com>2014-03-13 21:52:17 +0800
commitd3edb1bb42ce1d52f36f5456190dc154023740ed (patch)
tree43f65144b2970aebfe4e705c3d0f649261ed3f80
parent6a2e3aad40d5e5bfb1f5d56c2387b8246ae17480 (diff)
glamor: Fix typo in setting v_position's attrib location.
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@anholt.net> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/glamor_gradient.c2
1 files changed, 1 insertions, 1 deletions
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);