python: Don't bypass vs/clip/viewport by default.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 26 Mar 2009 12:11:27 +0000 (12:11 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 26 Mar 2009 12:11:27 +0000 (12:11 +0000)
src/gallium/state_trackers/python/st_device.c

index b4f8649d3bc5c642e6dd7e7bd70e33a95925f705..8246b378ce0851e9b8afb471d5f4e4ba4e9bb32f 100644 (file)
@@ -192,10 +192,16 @@ st_context_create(struct st_device *st_dev)
       memset(&rasterizer, 0, sizeof(rasterizer));
       rasterizer.front_winding = PIPE_WINDING_CW;
       rasterizer.cull_mode = PIPE_WINDING_NONE;
-      rasterizer.bypass_vs_clip_and_viewport = 1;
       cso_set_rasterizer(st_ctx->cso, &rasterizer);
    }
 
+   /* clip */
+   {
+      struct pipe_clip_state clip;
+      memset(&clip, 0, sizeof(clip));
+      st_ctx->pipe->set_clip_state(st_ctx->pipe, &clip);
+   }
+
    /* identity viewport */
    {
       struct pipe_viewport_state viewport;