From: Eric Anholt Date: Thu, 8 Sep 2011 23:09:31 +0000 (-0700) Subject: i965/vs: Return a dummy value when visiting ir_texture. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4444b8e5b914cde428e549c0db9418ddc1402f6;p=mesa.git 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. --- 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