projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36c1e75
)
dri2: Initialize variables for the getbuffers round-trip reduction.
author
Eric Anholt
<eric@anholt.net>
Sun, 8 Feb 2009 14:22:34 +0000
(15:22 +0100)
committer
Eric Anholt
<eric@anholt.net>
Wed, 11 Feb 2009 02:45:17 +0000
(18:45 -0800)
Missed setting the initial values which usually didn't hurt at runtime.
src/glx/x11/dri2_glx.c
patch
|
blob
|
history
diff --git
a/src/glx/x11/dri2_glx.c
b/src/glx/x11/dri2_glx.c
index 41861d5d2709653047fc9caad0bebfab563254c0..b878f05ddac3480c016315571e3daf3f78e8c799 100644
(file)
--- a/
src/glx/x11/dri2_glx.c
+++ b/
src/glx/x11/dri2_glx.c
@@
-170,6
+170,7
@@
static __GLXDRIdrawable *dri2CreateDrawable(__GLXscreenConfigs *psc,
pdraw->base.xDrawable = xDrawable;
pdraw->base.drawable = drawable;
pdraw->base.psc = psc;
+ pdraw->bufferCount = 0;
pdraw->configureSeqno = ~0;
DRI2CreateDrawable(psc->dpy, xDrawable);
@@
-440,6
+441,7
@@
_X_HIDDEN __GLXDRIdisplay *dri2CreateDisplay(Display *dpy)
dri2ConfigureNotifyProc);
pdp->driPatch = 0;
+ pdp->configureSeqno = 0;
pdp->base.destroyDisplay = dri2DestroyDisplay;
pdp->base.createScreen = dri2CreateScreen;