dri/nouveau: fix gnome-shell segfault
authorBen Skeggs <bskeggs@redhat.com>
Mon, 6 Jun 2011 00:17:59 +0000 (10:17 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 6 Jun 2011 00:17:59 +0000 (10:17 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
src/mesa/drivers/dri/nouveau/nouveau_context.c

index 71dde413873b42845232a99f3d17cb63bf032e70..22b99571e738d539c3bf417ea9c584fcd952b1dc 100644 (file)
@@ -261,7 +261,7 @@ nouveau_update_renderbuffers(__DRIcontext *dri_ctx, __DRIdrawable *draw)
                assert(!ret);
        }
 
-       _mesa_resize_framebuffer(NULL, fb, draw->w, draw->h);
+       _mesa_resize_framebuffer(ctx, fb, draw->w, draw->h);
 }
 
 static void