Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pokechu22 committed Jun 10, 2021
1 parent b5d8f84 commit 0d7961c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Source/Core/Core/Config/GraphicsSettings.cpp
Expand Up @@ -148,7 +148,8 @@ const Info<bool> GFX_HACK_COPY_EFB_SCALED{{System::GFX, "Hacks", "EFBScaledCopy"
const Info<bool> GFX_HACK_EFB_EMULATE_FORMAT_CHANGES{
{System::GFX, "Hacks", "EFBEmulateFormatChanges"}, false};
const Info<bool> GFX_HACK_VERTEX_ROUDING{{System::GFX, "Hacks", "VertexRounding"}, false};
const Info<u32> GFX_HACK_MISSING_COLOR_VALUE{{System::GFX, "Hacks", "MissingColorValue"}, 0xFFFFFFFF};
const Info<u32> GFX_HACK_MISSING_COLOR_VALUE{{System::GFX, "Hacks", "MissingColorValue"},
0xFFFFFFFF};

// Graphics.GameSpecific

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/VertexShaderManager.cpp
Expand Up @@ -143,7 +143,7 @@ void VertexShaderManager::SetConstants()
const float g = (g_ActiveConfig.iMissingColorValue >> 16) & 0xFF;
const float r = (g_ActiveConfig.iMissingColorValue >> 24) & 0xFF;
constants.missing_color_hex = g_ActiveConfig.iMissingColorValue;
constants.missing_color_value = { r / 256, g / 256, b / 256, a / 256 };
constants.missing_color_value = {r / 255, g / 255, b / 255, a / 255};

dirty = true;
}
Expand Down

0 comments on commit 0d7961c

Please sign in to comment.