From d4444b8e5b914cde428e549c0db9418ddc1402f6 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 8 Sep 2011 16:09:31 -0700 Subject: [PATCH] i965/vs: Return a dummy value when visiting ir_texture. While the program won't successfully link in the end, this avoids possible assertion failure in the driver during linking if this->result isn't initialized with something already. --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 833349a1264..61c226a8395 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -1675,6 +1675,7 @@ vec4_visitor::visit(ir_texture *ir) * programs that do vertex texturing, but after our visitor has * run. */ + this->result = src_reg(this, glsl_type::vec4_type); } void -- 2.30.2