summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2008-09-12 12:43:10 +0300
committerKeith Whitwell <keith@tungstengraphics.com>2008-09-18 18:52:14 +0100
commit841205e365fabf7cfa5d4f6cdba80f6507086b4e (patch)
tree3ab6eb006cb7b1916bf868afa43cd925c238a010
parent3bb864682944a391c81e7c52e9bb36ed53b853f5 (diff)
dri/swrast: fix swapBuffers after dri2
-rw-r--r--src/glx/x11/drisw_glx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glx/x11/drisw_glx.c b/src/glx/x11/drisw_glx.c
index bcf7e144ef..ad7b5ebd0c 100644
--- a/src/glx/x11/drisw_glx.c
+++ b/src/glx/x11/drisw_glx.c
@@ -335,6 +335,11 @@ static __GLXDRIdrawable *driCreateDrawable(__GLXscreenConfigs *psc,
return pdraw;
}
+static void driSwapBuffers(__GLXDRIdrawable *pdraw)
+{
+ (*pdraw->psc->core->swapBuffers)(pdraw->driDrawable);
+}
+
static void driDestroyScreen(__GLXscreenConfigs *psc)
{
/* Free the direct rendering per screen data */
@@ -398,6 +403,7 @@ static __GLXDRIscreen *driCreateScreen(__GLXscreenConfigs *psc, int screen,
psp->destroyScreen = driDestroyScreen;
psp->createContext = driCreateContext;
psp->createDrawable = driCreateDrawable;
+ psp->swapBuffers = driSwapBuffers;
return psp;