From 5c14a24ce115a85d9edfdd11bbf6d78ccd9eddaa Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Fri, 9 Sep 2011 21:34:46 +0200 Subject: Make shader ID validation optional by adding a gfx setting called "EnableShaderDebugging". Setting this to True will enable additional checks if the shader cache misses any relevant register changes. --- Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp') diff --git a/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp b/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp index 950aaf5ef1..6dec1977b1 100644 --- a/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp +++ b/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp @@ -499,7 +499,7 @@ bool PixelShaderCache::SetShader(DSTALPHA_MODE dstAlphaMode, u32 components) bool success = InsertByteCode(uid, pbytecode->Data(), pbytecode->Size()); pbytecode->Release(); - if (success) + if (g_ActiveConfig.bEnableShaderDebugging && success) { PixelShaders[uid].code = code; GetSafePixelShaderId(&PixelShaders[uid].safe_uid, dstAlphaMode); -- cgit v1.2.3