diff options
| author | NeoBrainX <NeoBrainX@googlemail.com> | 2011-09-10 03:10:28 +0200 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@googlemail.com> | 2011-09-10 03:10:28 +0200 |
| commit | 5d075ce507c180dc89b9731eaa2f52e729caf8f6 (patch) | |
| tree | 406a45eecce0bfa9b026d2a071647e8c4c671dc7 /Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp | |
| parent | a021dd7b79062d20552852d32387cf6b36ab06e6 (diff) | |
- D3D9: pass the correct API type to ValidatePixelShaderIDs
- don't load shader cache from disk in d3d9/11 if shader debugging is enabled (we won't have any info about the source shader code otherwise, etc)
- dump shader source codes on safe UIDs mismatch
Thanks to LordMark and [SS] for reporting those to me ;)
Diffstat (limited to 'Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp b/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp index 6dec1977b1..c278ae1d81 100644 --- a/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp +++ b/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp @@ -412,6 +412,9 @@ void PixelShaderCache::Init() SConfig::GetInstance().m_LocalCoreStartupParameter.m_strUniqueID.c_str()); PixelShaderCacheInserter inserter; g_ps_disk_cache.OpenAndRead(cache_filename, inserter); + + if (g_Config.bEnableShaderDebugging) // TODO: Hacks.. + Clear(); } // ONLY to be used during shutdown. |
