diff options
author | George Sapountzis <[email protected]> | 2008-09-12 12:43:10 +0300 |
---|---|---|
committer | George Sapountzis <[email protected]> | 2008-09-12 12:43:10 +0300 |
commit | d3dc95e26a0da2b89e7a3cdf5bacbfc66ed17c95 (patch) | |
tree | e8347b9553697fce8fd7b2ebd185965ea2526172 /src/glx | |
parent | b2e083eba2668517e40bc94e3a19cd15824ce93c (diff) |
dri/swrast: fix swapBuffers after dri2
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/x11/drisw_glx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glx/x11/drisw_glx.c b/src/glx/x11/drisw_glx.c index bcf7e144ef6..ad7b5ebd0c4 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; |