r300g: Fix uninitialized variable warnings in error path.
authorVinson Lee <vlee@vmware.com>
Thu, 17 Jun 2010 00:56:00 +0000 (17:56 -0700)
committerVinson Lee <vlee@vmware.com>
Thu, 17 Jun 2010 00:56:00 +0000 (17:56 -0700)
src/gallium/drivers/r300/r300_emit.c

index 251e1700565d7c9aafc6fe7fbd7b981a01d2aefe..4639bbbd9b86ce20e4b2537600622f13dcc5c3d1 100644 (file)
@@ -512,6 +512,8 @@ void r300_emit_rs_state(struct r300_context* r300, unsigned size, void* state)
                     break;
                 default:
                     debug_printf("r300: Bad number of multisamples!\n");
+                    mspos0 = 0;
+                    mspos1 = 0;
                     break;
             }