nouveau: small oops
authorBen Skeggs <skeggsb@gmail.com>
Sun, 20 Jan 2008 12:20:42 +0000 (23:20 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Sun, 20 Jan 2008 12:20:42 +0000 (23:20 +1100)
src/mesa/drivers/dri/nouveau_winsys/nouveau_screen.c

index 784dfdd155e272f27d12f76708261d2a8652961c..c58af22c98cf1037f5fd79bdceddc95e5726bd4b 100644 (file)
@@ -158,7 +158,7 @@ nouveau_destroy_buffer(__DRIdrawablePrivate * driDrawPriv)
 {
        struct nouveau_framebuffer *nvfb;
        
-       nvfb = (struct nouveau_framebuffer *)driDrawPriv;
+       nvfb = (struct nouveau_framebuffer *)driDrawPriv->driverPrivate;
        st_unreference_framebuffer(&nvfb->stfb);
        free(nvfb);
 }