From: Jon Smirl Date: Sat, 7 May 2005 19:56:44 +0000 (+0000) Subject: fbdri can draw double buffered now. Next step is to convert it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86300c694501a8b2ca7c4a03f74e68af24586010;p=mesa.git fbdri can draw double buffered now. Next step is to convert it to use RenderBuffers. --- diff --git a/src/mesa/drivers/dri/fb/fb_dri.c b/src/mesa/drivers/dri/fb/fb_dri.c index 992b330c59e..bf7843d9f10 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; }