diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/fb/fb_dri.c | 5 |
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 992b330c59..bf7843d9f1 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; } |