Initialize have_back.
authorPierre Willenbrock <pierre@pirsoft.de>
Tue, 27 Apr 2010 21:16:46 +0000 (23:16 +0200)
committerEric Anholt <eric@anholt.net>
Wed, 28 Apr 2010 00:12:39 +0000 (17:12 -0700)
There is a user somewhere that tests it before its initial set.

Signed-off-by: Eric Anholt <eric@anholt.net>
src/glx/dri2_glx.c

index 9347611e7d8b5fb4de65d249c70dc9feb8d471e8..73d11f14a14cb2a92b9efadf9d16ace2e25ec8ba 100644 (file)
@@ -194,6 +194,7 @@ dri2CreateDrawable(__GLXscreenConfigs * psc,
    pdraw->base.psc = psc;
    pdraw->bufferCount = 0;
    pdraw->swap_interval = 1; /* default may be overridden below */
+   pdraw->have_back = 0;
 
    if (psc->config)
       psc->config->configQueryi(psc->__driScreen, "vblank_mode", &vblank_mode);