diff options
| author | NeoBrainX <NeoBrainX@gmail.com> | 2013-04-10 12:54:22 +0200 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@gmail.com> | 2013-04-10 12:54:22 +0200 |
| commit | ec08914905ca1c4fe3b2456a9cc037a3f7eedd49 (patch) | |
| tree | 7dd92c187cb9a75d9ec9eceaf4a41be32a226488 /Source/Core/VideoCommon/Src/PixelShaderGen.cpp | |
| parent | ec5f596b3175e06c8d27ae2053213813db3693ef (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.cpp | 7 |
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) |
