r300g/swtcl: fix polygon offset
authorMarek Olšák <maraeo@gmail.com>
Tue, 3 Apr 2012 23:46:31 +0000 (01:46 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 4 Apr 2012 02:28:41 +0000 (04:28 +0200)
src/gallium/drivers/r300/r300_state.c

index 05ed81b2b9d0b6e182cd9e98e2f9b58d3c97321e..4101523c5422cce9e9b5e54cbe899fc9c8d7a4bc 100644 (file)
@@ -1048,6 +1048,10 @@ static void* r300_create_rs_state(struct pipe_context* pipe,
 
     /* Override some states for Draw. */
     rs->rs_draw.sprite_coord_enable = 0; /* We can do this in HW. */
+    rs->rs_draw.offset_point = 0;
+    rs->rs_draw.offset_line = 0;
+    rs->rs_draw.offset_tri = 0;
+    rs->rs_draw.offset_clamp = 0;
 
 #ifdef PIPE_ARCH_LITTLE_ENDIAN
     vap_control_status = R300_VC_NO_SWAP;