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 /src/gallium/winsys | |
parent | 152ed98b84acf500f4b5122cf3fde82c6e5206f2 (diff) |
i915: Fix haveDepth and haveStencil for visual in EGL
Diffstat (limited to 'src/gallium/winsys')
-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 cc4fb247d5..a008d952bf 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; } |