[PATCH] gl-renderer: Fix support for Y_XUXV buffers

Ander Conselvan de Oliveira conselvan2 at gmail.com
Wed Nov 27 07:43:51 PST 2013


From: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira at intel.com>

Due to a copy and paste error, the pointer to the vertex shader source
was NULL and the program failed to link.
---
 src/gl-renderer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gl-renderer.c b/src/gl-renderer.c
index 7a535c7..4942ccd 100644
--- a/src/gl-renderer.c
+++ b/src/gl-renderer.c
@@ -1753,7 +1753,7 @@ compile_shaders(struct weston_compositor *ec)
 	gr->texture_shader_y_u_v.fragment_source =
 		texture_fragment_shader_y_u_v;
 
-	gr->texture_shader_y_u_v.vertex_source = vertex_shader;
+	gr->texture_shader_y_xuxv.vertex_source = vertex_shader;
 	gr->texture_shader_y_xuxv.fragment_source =
 		texture_fragment_shader_y_xuxv;
 
-- 
1.7.9.5



More information about the wayland-devel mailing list