gallium: fix frontbuffer rendering with r300g
authorDave Airlie <airlied@redhat.com>
Mon, 15 Mar 2010 20:49:38 +0000 (06:49 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 15 Mar 2010 20:51:04 +0000 (06:51 +1000)
No idea if this is the correct fix, but it makes it work again at least.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/state_trackers/dri/dri_context.c

index 2f991c39e33b82478eb7e9a6430ad803378ba168..9811f8cf43c2b7fbac4aa672779b4fc9fbb9fa16 100644 (file)
@@ -167,7 +167,7 @@ dri_make_current(__DRIcontext * cPriv,
        * flush_frontbuffer directly (in front-buffer rendering), it
        * will have access to the drawable argument:
        */
-      st_make_current(ctx->st, draw->stfb, read->stfb, NULL);
+      st_make_current(ctx->st, draw->stfb, read->stfb, ctx);
 
       if (__dri1_api_hooks) {
         dri1_update_drawables(ctx, draw, read);