Am Montag, 17. März 2008 19:46:45 schrieb Stefan Dösinger: > Here is an updated patch that takes Roderick's recent changes into account Yet another patch, it takes Rodericks patches from today into account. Feel free to apply whatever patch suits better. If none of them are applied I will resend all the patches when Roderick is done with his CheckDeviceFormat rewite
From 7833bd2c580e328be35c68a368c01a4e51c22d54 Mon Sep 17 00:00:00 2001 From: Stefan Doesinger <[EMAIL PROTECTED]> Date: Tue, 11 Mar 2008 15:02:36 +0100 Subject: [PATCH] WineD3D: Enable V8U8 for legacy bump mapping with ati extensions GL_ATI_envmap_bumpmap naturally supports this, and GL_ATI_fragment_shader has a replacement shader which does the color corrections if the format isn't supported natively --- dlls/wined3d/directx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index fb08fb4..256bccc 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1843,7 +1843,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"); -- 1.5.3.7