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

Grigori Goronzy greg at chown.ath.cx
Fri Jun 6 12:20:59 PDT 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.

Signed-off-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Keith Packard <keithp at keithp.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
---
 src/glamor_trapezoid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glamor_trapezoid.c b/src/glamor_trapezoid.c
index ca05cbf..24cf882 100644
--- a/src/glamor_trapezoid.c
+++ b/src/glamor_trapezoid.c
@@ -1299,7 +1299,7 @@ glamor_init_trapezoid_shader(ScreenPtr screen)
 	dispatch->glAttachShader(glamor_priv->trapezoid_prog, fs_prog);
 
 	dispatch->glBindAttribLocation(glamor_priv->trapezoid_prog,
-	        GLAMOR_VERTEX_POS, "v_positionsition");
+	        GLAMOR_VERTEX_POS, "v_position");
 	dispatch->glBindAttribLocation(glamor_priv->trapezoid_prog,
 	        GLAMOR_VERTEX_SOURCE, "v_texcoord");
 	dispatch->glBindAttribLocation(glamor_priv->trapezoid_prog,
-- 
1.8.3.2



More information about the Glamor mailing list