diff options
author | Jakob Bornecrantz <jakob@aurora.(none)> | 2008-07-05 14:04:02 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@aurora.(none)> | 2008-07-05 14:04:02 +0200 |
commit | 74db8e9b3f354b5afa30f7cd52a511504693a3c8 (patch) | |
tree | 390a75cbb51ae7fd13fb9dd3fef4390afbf008c1 | |
parent | 152ed98b84acf500f4b5122cf3fde82c6e5206f2 (diff) |
i915: Fix haveDepth and haveStencil for visual in EGL
-rw-r--r-- | src/gallium/winsys/egl_drm/intel/intel_egl.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |