i915: Fix haveDepth and haveStencil for visual in EGL
authorJakob Bornecrantz <jakob@aurora.(none)>
Sat, 5 Jul 2008 12:04:02 +0000 (14:04 +0200)
committerJakob Bornecrantz <jakob@aurora.(none)>
Sat, 5 Jul 2008 12:04:02 +0000 (14:04 +0200)
src/gallium/winsys/egl_drm/intel/intel_egl.c

index cc4fb247d55e3834b3bcd226b5dc4b429d497398..a008d952bfb936b062b7b513017e50ba3d80001e 100644 (file)
@@ -224,7 +224,9 @@ visual_from_config(_EGLConfig *conf)
        visual->doubleBufferMode = 1;
 
        visual->depthBits = 24;
+       visual->haveDepthBuffer = visual->depthBits > 0;
        visual->stencilBits = 8;
+       visual->haveStencilBuffer = visual->stencilBits > 0;
 
        return visual;
 }