2009/9/3 Stephan Rose kermos@somrek.net:
case WINED3DFMT_R8G8B8A8_SNORM:
DDPixelFormat->dwFlags = DDPF_BUMPDUDV;
DDPixelFormat->dwFourCC = 0;
DDPixelFormat->u1.dwBumpBitCount = 32;
DDPixelFormat->u2.dwBumpDuBitMask = 0xFF000000;
DDPixelFormat->u3.dwBumpDvBitMask = 0x00FF0000;
DDPixelFormat->u4.dwBumpLuminanceBitMask = 0x0000FF00;
DDPixelFormat->u5.dwLuminanceAlphaBitMask = 0x000000FF;
break;
case WINED3DFMT_R16G16_SNORM:
DDPixelFormat->dwFlags = DDPF_BUMPDUDV;
DDPixelFormat->dwFourCC = 0;
DDPixelFormat->u1.dwBumpBitCount = 32;
DDPixelFormat->u2.dwBumpDuBitMask = 0xFFFF0000;
DDPixelFormat->u3.dwBumpDvBitMask = 0x0000FFFF;
DDPixelFormat->u4.dwBumpLuminanceBitMask = 0x00000000;
DDPixelFormat->u5.dwLuminanceAlphaBitMask = 0x00000000;
break;
I think you have the masks backwards. You also have some trailing spaces in there.