summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@googlemail.com>2011-09-09 21:45:11 +0200
committerNeoBrainX <NeoBrainX@googlemail.com>2011-09-09 21:45:11 +0200
commita021dd7b79062d20552852d32387cf6b36ab06e6 (patch)
tree609155a72b28468d221ba629d2a1b47376d189b6 /Source/Core/VideoCommon
parent5c14a24ce115a85d9edfdd11bbf6d78ccd9eddaa (diff)
Small fix to the previous commit.
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderGen.cpp3
-rw-r--r--Source/Core/VideoCommon/Src/VertexShaderGen.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
index 25007be93b..1ea7479990 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
@@ -243,6 +243,9 @@ void GetSafePixelShaderId(PIXELSHADERUIDSAFE *uid, DSTALPHA_MODE dstAlphaMode)
void ValidatePixelShaderIDs(API_TYPE api, PIXELSHADERUIDSAFE old_id, const std::string& old_code, DSTALPHA_MODE dstAlphaMode, u32 components)
{
+ if (!g_ActiveConfig.bEnableShaderDebugging)
+ return;
+
PIXELSHADERUIDSAFE new_id;
GetSafePixelShaderId(&new_id, dstAlphaMode);
diff --git a/Source/Core/VideoCommon/Src/VertexShaderGen.cpp b/Source/Core/VideoCommon/Src/VertexShaderGen.cpp
index 902f645bec..f3dab89173 100644
--- a/Source/Core/VideoCommon/Src/VertexShaderGen.cpp
+++ b/Source/Core/VideoCommon/Src/VertexShaderGen.cpp
@@ -93,6 +93,9 @@ void GetSafeVertexShaderId(VERTEXSHADERUIDSAFE *uid, u32 components)
void ValidateVertexShaderIDs(API_TYPE api, VERTEXSHADERUIDSAFE old_id, const std::string& old_code, u32 components)
{
+ if (!g_ActiveConfig.bEnableShaderDebugging)
+ return;
+
VERTEXSHADERUIDSAFE new_id;
GetSafeVertexShaderId(&new_id, components);