[d3d9] Explicitly cast to D3DRENDERSTATETYPE in ColorWriteIndex

Need this to silence warnings after doing some arithmetic on an enum.
This commit is contained in:
Joshua Ashton 2022-09-10 20:59:53 +00:00 committed by Joshie
parent f42df87937
commit b0ac267fd5
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ namespace dxvk {
}
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) {