wined3d: Use the correct divider for 15-bit depth formats in IWineD3DSurfaceImpl_BltZ().

This commit is contained in:
Henri Verbeet 2010-08-03 10:13:31 +02:00 committed by Alexandre Julliard
parent 24f522c520
commit 6e68dd52c4
1 changed files with 1 additions and 1 deletions

View File

@ -3778,7 +3778,7 @@ static HRESULT IWineD3DSurfaceImpl_BltZ(IWineD3DSurfaceImpl *This, const RECT *D
depth = (float) DDBltFx->u5.dwFillDepth / (float) 0x0000ffff;
break;
case WINED3DFMT_S1_UINT_D15_UNORM:
depth = (float) DDBltFx->u5.dwFillDepth / (float) 0x0000fffe;
depth = (float) DDBltFx->u5.dwFillDepth / (float) 0x00007fff;
break;
case WINED3DFMT_D24_UNORM_S8_UINT:
case WINED3DFMT_X8D24_UNORM: