r300g: fix a compile error on non-debug builds
authorMarek Olšák <maraeo@gmail.com>
Sun, 27 Jun 2010 15:15:23 +0000 (17:15 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 27 Jun 2010 15:15:23 +0000 (17:15 +0200)
src/gallium/drivers/r300/r300_state.c

index 6177ab3a5478e5507aad8d63b25371c4052797fe..15de533778f380bb4458ed7f6eb7b47ed9d87781 100644 (file)
@@ -1025,7 +1025,7 @@ static void* r300_create_rs_state(struct pipe_context* pipe,
     OUT_CB(line_control);
     OUT_CB_REG_SEQ(R300_SU_POLY_OFFSET_ENABLE, 2);
     OUT_CB(polygon_offset_enable);
-    rs->cull_mode_index = 25 - cs_count;
+    rs->cull_mode_index = 9;
     OUT_CB(cull_mode);
     OUT_CB_REG(R300_GA_LINE_STIPPLE_CONFIG, line_stipple_config);
     OUT_CB_REG(R300_GA_LINE_STIPPLE_VALUE, line_stipple_value);