When using the old technique to set up the front buffer mapping, there
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 31 Aug 2006 17:24:55 +0000 (17:24 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 31 Aug 2006 17:24:55 +0000 (17:24 +0000)
is no need to add front.offset to sPriv->pFB, it seems.  Fixes several
glean issues and frontbuffer rendering generally.

src/mesa/drivers/dri/i965/intel_screen.c

index affd9051c9830d1b7efd68ec2af1ed369b8c3c8f..14b461b1ee71fd1afa2b4109429d2816d5e08c18 100644 (file)
@@ -87,7 +87,7 @@ intelMapScreenRegions(__DRIscreenPrivate *sPriv)
        * the renderbuffer address to point to the beginning of the
        * renderbuffer.
        */
-      intelScreen->front.map = sPriv->pFB + intelScreen->front.offset;
+      intelScreen->front.map = sPriv->pFB;
       if (intelScreen->front.map == NULL) {
         fprintf(stderr, "Failed to find framebuffer mapping\n");
         return GL_FALSE;