r300g: more reasonable MSPOS defaults in error path
authorMarek Olšák <maraeo@gmail.com>
Thu, 17 Jun 2010 03:14:24 +0000 (05:14 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 17 Jun 2010 03:14:24 +0000 (05:14 +0200)
src/gallium/drivers/r300/r300_emit.c

index 4639bbbd9b86ce20e4b2537600622f13dcc5c3d1..50372d28c139809b3ec6c5597fe2a4d7b9fbe212 100644 (file)
@@ -512,8 +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;
+                    mspos0 = rs->multisample_position_0;
+                    mspos1 = rs->multisample_position_1;
                     break;
             }