Mesa (master): dri2: Initialize variables for the getbuffers round-trip reduction.

Eric Anholt anholt at kemper.freedesktop.org
Wed Feb 11 02:45:36 UTC 2009


Module: Mesa
Branch: master
Commit: 680c708deeb4d18474cf7ba86c587dede51d3633
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=680c708deeb4d18474cf7ba86c587dede51d3633

Author: Eric Anholt <eric at anholt.net>
Date:   Sun Feb  8 15:22:34 2009 +0100

dri2: Initialize variables for the getbuffers round-trip reduction.

Missed setting the initial values which usually didn't hurt at runtime.

---

 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 41861d5..b878f05 100644
--- 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;




More information about the mesa-commit mailing list