aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-09-08 16:09:31 -0700
committerEric Anholt <[email protected]>2011-09-21 09:46:39 -0700
commitd4444b8e5b914cde428e549c0db9418ddc1402f6 (patch)
treedc5ce0eaa1dfc33eff021dfb6482ddeb0d2d1ad9 /src/mesa
parentd158f6e73b0b7306f7bee246d2349c490041e449 (diff)
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.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp1
1 files changed, 1 insertions, 0 deletions
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