i965: Shut up spurious gcc warning about GLSL_TYPE enums.
authorEric Anholt <eric@anholt.net>
Wed, 17 Nov 2010 07:06:22 +0000 (15:06 +0800)
committerEric Anholt <eric@anholt.net>
Thu, 18 Nov 2010 01:18:47 +0000 (09:18 +0800)
src/mesa/drivers/dri/i965/brw_fs.cpp

index 9c03b61c82e49c3d39c62b74b1e892d7389a6c0e..4ef71784d4ea158767d0862f50d8c61031ba44b2 100644 (file)
@@ -299,6 +299,10 @@ fs_visitor::setup_uniform_values(int loc, const glsl_type *type)
         case GLSL_TYPE_BOOL:
            c->prog_data.param_convert[param] = PARAM_CONVERT_F2B;
            break;
+        default:
+           assert(!"not reached");
+           c->prog_data.param_convert[param] = PARAM_NO_CONVERT;
+           break;
         }
 
         c->prog_data.param[param] = &vec_values[i];