mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +01:00
[d3d9] Disable old border color hack if custom border colors are supported
This commit is contained in:
parent
263865cf28
commit
5fd361757b
@ -5365,13 +5365,16 @@ namespace dxvk {
|
|||||||
for (uint32_t i = 0; i < 4; i++)
|
for (uint32_t i = 0; i < 4; i++)
|
||||||
colorInfo.borderColor.float32[i] = cKey.BorderColor[i];
|
colorInfo.borderColor.float32[i] = cKey.BorderColor[i];
|
||||||
|
|
||||||
// HACK: Let's get OPAQUE_WHITE border color over
|
if (!m_dxvkDevice->features().extCustomBorderColor.customBorderColorWithoutFormat) {
|
||||||
// TRANSPARENT_BLACK if the border RGB is white.
|
// HACK: Let's get OPAQUE_WHITE border color over
|
||||||
if (colorInfo.borderColor.float32[0] == 1.0f
|
// TRANSPARENT_BLACK if the border RGB is white.
|
||||||
&& colorInfo.borderColor.float32[1] == 1.0f
|
if (colorInfo.borderColor.float32[0] == 1.0f
|
||||||
&& colorInfo.borderColor.float32[2] == 1.0f) {
|
&& colorInfo.borderColor.float32[1] == 1.0f
|
||||||
// Then set the alpha to 1.
|
&& colorInfo.borderColor.float32[2] == 1.0f
|
||||||
colorInfo.borderColor.float32[3] = 1.0f;
|
&& !m_dxvkDevice->features().extCustomBorderColor.customBorderColors) {
|
||||||
|
// Then set the alpha to 1.
|
||||||
|
colorInfo.borderColor.float32[3] = 1.0f;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DxvkSamplerCreateInfo depthInfo = colorInfo;
|
DxvkSamplerCreateInfo depthInfo = colorInfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user