diff options
author | Kenneth Graunke <[email protected]> | 2010-10-18 12:21:20 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-10-18 12:21:20 -0700 |
commit | 65d4234c2398aaa48eb5e29e6e7bede40fe2fd36 (patch) | |
tree | ca331d4b1f92df69608c05ea9f22df49012d23e6 | |
parent | f37b114dc3b9281938738572246fe7c685cf7211 (diff) |
i965: Add missing "break" statement.
Otherwise, it would try to handle arrays as structures, use
uninitialized memory, and crash.
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 554ba39a0cd..85fd6d06b92 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -941,6 +941,7 @@ fs_visitor::emit_assignment_writes(fs_reg &l, fs_reg &r, for (unsigned int i = 0; i < type->length; i++) { emit_assignment_writes(l, r, type->fields.array, predicated); } + break; case GLSL_TYPE_STRUCT: for (unsigned int i = 0; i < type->length; i++) { |