From 1d647283d5eeba840eb4de76ddb6fd33b7083388 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 3 Aug 2009 08:06:50 +0200 Subject: [PATCH] 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. --- dlls/wined3d/directx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index e6fb1c73d5c..81f81db134b 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -2698,7 +2698,7 @@ static BOOL CheckDepthStencilCapability(struct WineD3DAdapter *adapter, int it=0; /* 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 */ for (it = 0; it < adapter->nCfgs; ++it)