diff options
Diffstat (limited to 'src/mesa/drivers/dri/sis/sis_dd.c')
-rw-r--r-- | src/mesa/drivers/dri/sis/sis_dd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/sis/sis_dd.c b/src/mesa/drivers/dri/sis/sis_dd.c index 7dc3018157a..6cabe5c383b 100644 --- a/src/mesa/drivers/dri/sis/sis_dd.c +++ b/src/mesa/drivers/dri/sis/sis_dd.c @@ -227,7 +227,7 @@ sisUpdateBufferSize(sisContextPtr smesa) /* XXX Should get the base offset of the frontbuffer from the X Server */ smesa->front.offset = smesa->driDrawable->x * smesa->bytesPerPixel + smesa->driDrawable->y * smesa->front.pitch; - smesa->front.map = (char *) smesa->driScreen->pFB; + smesa->front.map = (char *) smesa->driScreen->pFB + smesa->front.offset; smesa->width = smesa->driDrawable->w; smesa->height = smesa->driDrawable->h; |