projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2e083e
)
dri/swrast: fix swapBuffers after dri2
author
George Sapountzis
<gsap7@yahoo.gr>
Fri, 12 Sep 2008 09:43:10 +0000
(12:43 +0300)
committer
George Sapountzis
<gsap7@yahoo.gr>
Fri, 12 Sep 2008 09:43:10 +0000
(12:43 +0300)
src/glx/x11/drisw_glx.c
patch
|
blob
|
history
diff --git
a/src/glx/x11/drisw_glx.c
b/src/glx/x11/drisw_glx.c
index bcf7e144ef6417fc533644c208b0a0b665033e3c..ad7b5ebd0c41e1f93a2dc31b29906f76793efa87 100644
(file)
--- 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;