summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexShaderGen.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2021-06-10 03:38:24 -0400
committerGitHub <noreply@github.com>2021-06-10 03:38:24 -0400
commita51d01bb809bddaa2c221b0e9a6d0b935a285bce (patch)
treea8ebb37fd0c90eb6adc89b27fc3f82dc694ee26e /Source/Core/VideoCommon/VertexShaderGen.cpp
parente62610e6bc4f33234d8d5a7759ed5911bd25b8cb (diff)
parent1500a0119bbb9086b0482a94b154612a0684f194 (diff)
Merge pull request #9532 from Pokechu22/debug-cube-hack
Hackfix for debug cubes
Diffstat (limited to 'Source/Core/VideoCommon/VertexShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexShaderGen.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexShaderGen.cpp b/Source/Core/VideoCommon/VertexShaderGen.cpp
index 28d1e78442..a7b32c4725 100644
--- a/Source/Core/VideoCommon/VertexShaderGen.cpp
+++ b/Source/Core/VideoCommon/VertexShaderGen.cpp
@@ -214,10 +214,7 @@ ShaderCode GenerateVertexShaderCode(APIType api_type, const ShaderHostConfig& ho
}
else
{
- // The default alpha channel depends on the number of components in the vertex format.
- out.Write(
- "vertex_color_{0} = float4(1.0, 1.0, 1.0, float((color_chan_alpha >> {0}) & 1u));\n",
- color);
+ out.Write("vertex_color_{0} = missing_color_value;\n", color);
}
}