summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-10-18 12:21:20 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-10-18 12:21:20 -0700
commit65d4234c2398aaa48eb5e29e6e7bede40fe2fd36 (patch)
treeca331d4b1f92df69608c05ea9f22df49012d23e6 /src
parentf37b114dc3b9281938738572246fe7c685cf7211 (diff)
downloadmesa-65d4234c2398aaa48eb5e29e6e7bede40fe2fd36.tar.gz
i965: Add missing "break" statement.
Otherwise, it would try to handle arrays as structures, use uninitialized memory, and crash.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp1
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++) {