From 39e2cbc5d590b0c8b2ce4b9b28bb9f9ea086507a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Sat, 22 Mar 2008 17:02:09 +0100 Subject: [PATCH] wined3d: Enable D3DFMT_V8U8 with GL_ATI_fragment_shader. --- dlls/wined3d/directx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 3537cb037d1..bd66cfd9e74 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1872,7 +1872,7 @@ static BOOL CheckBumpMapCapability(UINT Adapter, WINED3DFORMAT CheckFormat) return FALSE; } } - if(GL_SUPPORT(ATI_ENVMAP_BUMPMAP)) { + if(GL_SUPPORT(ATI_ENVMAP_BUMPMAP) || GL_SUPPORT(ATI_FRAGMENT_SHADER)) { switch (CheckFormat) { case WINED3DFMT_V8U8: TRACE_(d3d_caps)("[OK]\n"); @@ -2119,7 +2119,8 @@ static BOOL CheckTextureCapability(UINT Adapter, WINED3DFORMAT CheckFormat) * and are still playable even without bump mapping */ case WINED3DFMT_V8U8: - if(GL_SUPPORT(NV_TEXTURE_SHADER) || GL_SUPPORT(ATI_ENVMAP_BUMPMAP)) { + if(GL_SUPPORT(NV_TEXTURE_SHADER) || GL_SUPPORT(ATI_ENVMAP_BUMPMAP) || + GL_SUPPORT(ATI_FRAGMENT_SHADER)) { return TRUE; } TRACE_(d3d_caps)("[FAILED] - No converted formats on volumes\n");