diff options
author | Eric Anholt <eric@anholt.net> | 2009-02-08 15:22:34 +0100 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2009-03-13 17:38:38 -0700 |
commit | 058cf2fff1a987ab147ff5f092966c3ce55601b1 (patch) | |
tree | ee20b85aa2ebd22e4c04dfb3b154ea0dce03d082 | |
parent | 715f509c5de8fcc7d24f0ccad052becfef19ed46 (diff) |
dri2: Initialize variables for the getbuffers round-trip reduction.
Missed setting the initial values which usually didn't hurt at runtime.
(cherry picked from commit 680c708deeb4d18474cf7ba86c587dede51d3633)
-rw-r--r-- | src/glx/x11/dri2_glx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/x11/dri2_glx.c b/src/glx/x11/dri2_glx.c index 639aa19e5f0..ed6633685e7 100644 --- a/src/glx/x11/dri2_glx.c +++ b/src/glx/x11/dri2_glx.c @@ -173,6 +173,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); @@ -493,6 +494,7 @@ _X_HIDDEN __GLXDRIdisplay *dri2CreateDisplay(Display *dpy) dri2ConfigureNotifyProc); pdp->driPatch = 0; + pdp->configureSeqno = 0; pdp->base.destroyDisplay = dri2DestroyDisplay; pdp->base.createScreen = dri2CreateScreen; |