From 65d4234c2398aaa48eb5e29e6e7bede40fe2fd36 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 18 Oct 2010 12:21:20 -0700 Subject: [PATCH] i965: Add missing "break" statement. Otherwise, it would try to handle arrays as structures, use uninitialized memory, and crash. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + 1 file changed, 1 insertion(+) 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++) { -- 2.30.2