From: Jakob Bornecrantz Date: Sat, 5 Jul 2008 12:04:02 +0000 (+0200) Subject: i915: Fix haveDepth and haveStencil for visual in EGL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74db8e9b3f354b5afa30f7cd52a511504693a3c8;p=mesa.git i915: Fix haveDepth and haveStencil for visual in EGL --- diff --git a/src/gallium/winsys/egl_drm/intel/intel_egl.c b/src/gallium/winsys/egl_drm/intel/intel_egl.c index cc4fb247d55..a008d952bfb 100644 --- a/src/gallium/winsys/egl_drm/intel/intel_egl.c +++ b/src/gallium/winsys/egl_drm/intel/intel_egl.c @@ -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; }