summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@gmail.com>2013-04-10 12:54:22 +0200
committerNeoBrainX <NeoBrainX@gmail.com>2013-04-10 12:54:22 +0200
commitec08914905ca1c4fe3b2456a9cc037a3f7eedd49 (patch)
tree7dd92c187cb9a75d9ec9eceaf4a41be32a226488 /Source/Core/VideoCommon/Src/PixelShaderGen.cpp
parentec5f596b3175e06c8d27ae2053213813db3693ef (diff)
Move Shader UID mismatch checking to VideoCommon.
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderGen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
index 69c096f002..2d9121856c 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
@@ -1207,6 +1207,13 @@ static void WriteFog(T& out, pixel_shader_uid_data& uid_data)
void GetPixelShaderUid(PixelShaderUid& object, DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType, u32 components)
{
GeneratePixelShader<PixelShaderUid>(object, dstAlphaMode, ApiType, components);
+
+ if (g_ActiveConfig.bEnableShaderDebugging)
+ {
+ PixelShaderCode code;
+ GeneratePixelShaderCode(code, dstAlphaMode, API_OPENGL, components);
+ CheckForUidMismatch<PixelShaderUid,PixelShaderCode>(code, object);
+ }
}
void GeneratePixelShaderCode(PixelShaderCode& object, DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType, u32 components)