mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-06 13:54:14 +01:00
[d3d9] Explicitly cast to D3DRENDERSTATETYPE in ColorWriteIndex
Need this to silence warnings after doing some arithmetic on an enum.
This commit is contained in:
parent
f42df87937
commit
b0ac267fd5
@ -241,7 +241,7 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline D3DRENDERSTATETYPE ColorWriteIndex(uint32_t i) {
|
inline D3DRENDERSTATETYPE ColorWriteIndex(uint32_t i) {
|
||||||
return D3DRENDERSTATETYPE(i ? D3DRS_COLORWRITEENABLE1 + i - 1 : D3DRS_COLORWRITEENABLE);
|
return D3DRENDERSTATETYPE(i ? D3DRENDERSTATETYPE(D3DRS_COLORWRITEENABLE1 + i - 1) : D3DRS_COLORWRITEENABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool AreFormatsSimilar(D3D9Format srcFormat, D3D9Format dstFormat) {
|
inline bool AreFormatsSimilar(D3D9Format srcFormat, D3D9Format dstFormat) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user