=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: ddraw: Set DDPF_BUMPLUMINANCE for V5U5L6 and X8L8V8U8.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Mar 11 10:00:43 CDT 2015


Module: wine
Branch: master
Commit: b07b350286ab489c0026163aa92964420cebb994
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b07b350286ab489c0026163aa92964420cebb994

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Mar 11 10:33:44 2015 +0100

ddraw: Set DDPF_BUMPLUMINANCE for V5U5L6 and X8L8V8U8.

---

 dlls/ddraw/utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ddraw/utils.c b/dlls/ddraw/utils.c
index ad271bc..f22db3e 100644
--- a/dlls/ddraw/utils.c
+++ b/dlls/ddraw/utils.c
@@ -310,7 +310,7 @@ void ddrawformat_from_wined3dformat(DDPIXELFORMAT *DDPixelFormat, enum wined3d_f
             break;
 
         case WINED3DFMT_R5G5_SNORM_L6_UNORM:
-            DDPixelFormat->dwFlags = DDPF_BUMPDUDV;
+            DDPixelFormat->dwFlags = DDPF_BUMPDUDV | DDPF_BUMPLUMINANCE;
             DDPixelFormat->dwFourCC = 0;
             DDPixelFormat->u1.dwBumpBitCount = 16;
             DDPixelFormat->u2.dwBumpDuBitMask =         0x0000001f;
@@ -320,7 +320,7 @@ void ddrawformat_from_wined3dformat(DDPIXELFORMAT *DDPixelFormat, enum wined3d_f
             break;
 
         case WINED3DFMT_R8G8_SNORM_L8X8_UNORM:
-            DDPixelFormat->dwFlags = DDPF_BUMPDUDV;
+            DDPixelFormat->dwFlags = DDPF_BUMPDUDV | DDPF_BUMPLUMINANCE;
             DDPixelFormat->dwFourCC = 0;
             DDPixelFormat->u1.dwBumpBitCount = 32;
             DDPixelFormat->u2.dwBumpDuBitMask =         0x000000ff;




More information about the wine-cvs mailing list