summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2005-05-07 19:56:44 +0000
committerJon Smirl <jonsmirl@gmail.com>2005-05-07 19:56:44 +0000
commit86300c694501a8b2ca7c4a03f74e68af24586010 (patch)
treece6320c79eeba96c6adcbb8fa8b7813ce149aa2c
parentfc3bc1ae14e7aa769fe01c007a1d68f2ff6db7b8 (diff)
downloadexternal_mesa3d-86300c694501a8b2ca7c4a03f74e68af24586010.zip
external_mesa3d-86300c694501a8b2ca7c4a03f74e68af24586010.tar.gz
external_mesa3d-86300c694501a8b2ca7c4a03f74e68af24586010.tar.bz2
fbdri can draw double buffered now. Next step is to convert it
to use RenderBuffers.
-rw-r--r--src/mesa/drivers/dri/fb/fb_dri.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/fb/fb_dri.c b/src/mesa/drivers/dri/fb/fb_dri.c
index 992b330..bf7843d 100644
--- a/src/mesa/drivers/dri/fb/fb_dri.c
+++ b/src/mesa/drivers/dri/fb/fb_dri.c
@@ -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;
}