fbdri can draw double buffered now. Next step is to convert it
authorJon Smirl <jonsmirl@gmail.com>
Sat, 7 May 2005 19:56:44 +0000 (19:56 +0000)
committerJon Smirl <jonsmirl@gmail.com>
Sat, 7 May 2005 19:56:44 +0000 (19:56 +0000)
to use RenderBuffers.

src/mesa/drivers/dri/fb/fb_dri.c

index 992b330c59ef1630fdf9d4946ea4cd2c5121c25a..bf7843d9f107c35a538f34adf4074d34f8b08fba 100644 (file)
@@ -529,13 +529,14 @@ fbCreateBuffer( __DRIscreenPrivate *driScrnPriv,
 
       driDrawPriv->driverPrivate = fbdrawable;
 
-      fbdrawable->frontBuffer = fbdrawable->currentBuffer = driScrnPriv->pFB;
+      fbdrawable->frontBuffer = driScrnPriv->pFB;
       fbdrawable->currentPitch = driScrnPriv->fbStride;
+      fbdrawable->currentBuffer = fbdrawable->frontBuffer;
       
       /* Replace the framebuffer back buffer with a malloc'ed one --
        * big speedup.
        */
-      fbdrawable->backBuffer = _mesa_malloc(fbdrawable->currentPitch * driDrawPriv->h);
+      fbdrawable->backBuffer = _mesa_malloc(fbdrawable->currentPitch * driScrnPriv->fbHeight);
 
       return 1;
    }