Commit 1d647283 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Don't use the GL texture flags to determine if a format is a depth…

wined3d: Don't use the GL texture flags to determine if a format is a depth stencil in CheckDepthStencilCapability(). The OpenGL implementation might not support ARB_depth_texture, but that doesn't mean we can't use the format for the depth buffer.
parent 43bfb240
...@@ -2698,7 +2698,7 @@ static BOOL CheckDepthStencilCapability(struct WineD3DAdapter *adapter, ...@@ -2698,7 +2698,7 @@ static BOOL CheckDepthStencilCapability(struct WineD3DAdapter *adapter,
int it=0; int it=0;
/* Only allow depth/stencil formats */ /* Only allow depth/stencil formats */
if (!(ds_format_desc->Flags & (WINED3DFMT_FLAG_DEPTH | WINED3DFMT_FLAG_STENCIL))) return FALSE; if (!(ds_format_desc->depth_size || ds_format_desc->stencil_size)) return FALSE;
/* Walk through all WGL pixel formats to find a match */ /* Walk through all WGL pixel formats to find a match */
for (it = 0; it < adapter->nCfgs; ++it) for (it = 0; it < adapter->nCfgs; ++it)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment