summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VertexShaderGen.cpp
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/Src/VertexShaderGen.cpp
parent5c14a24ce115a85d9edfdd11bbf6d78ccd9eddaa (diff)
Small fix to the previous commit.
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VertexShaderGen.cpp3
1 files changed, 3 insertions, 0 deletions
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);