wined3d: Assign the correct "levels" variable (LLVM/Clang).
This commit is contained in:
parent
19d18f0e5c
commit
e9daf92ae6
|
@ -962,7 +962,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVolumeTexture(IWineD3DDevice *ifa
|
||||||
WARN("D3DUSAGE_AUTOGENMIPMAP is set, and level count > 1, returning D3DERR_INVALIDCALL\n");
|
WARN("D3DUSAGE_AUTOGENMIPMAP is set, and level count > 1, returning D3DERR_INVALIDCALL\n");
|
||||||
return WINED3DERR_INVALIDCALL;
|
return WINED3DERR_INVALIDCALL;
|
||||||
}
|
}
|
||||||
Levels = 1;
|
object->baseTexture.levels = 1;
|
||||||
} else if (Levels == 0) {
|
} else if (Levels == 0) {
|
||||||
object->baseTexture.levels++;
|
object->baseTexture.levels++;
|
||||||
tmpW = Width;
|
tmpW = Width;
|
||||||
|
@ -1117,7 +1117,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateCubeTexture(IWineD3DDevice *iface
|
||||||
|
|
||||||
return WINED3DERR_INVALIDCALL;
|
return WINED3DERR_INVALIDCALL;
|
||||||
}
|
}
|
||||||
Levels = 1;
|
object->baseTexture.levels = 1;
|
||||||
} else if (Levels == 0) {
|
} else if (Levels == 0) {
|
||||||
object->baseTexture.levels++;
|
object->baseTexture.levels++;
|
||||||
tmpW = EdgeLength;
|
tmpW = EdgeLength;
|
||||||
|
|
Loading…
Reference in New Issue