mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-17 23:40:29 +01:00
i915: Fix haveDepth and haveStencil for visual in EGL
This commit is contained in:
parent
152ed98b84
commit
74db8e9b3f
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue