mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 23:58:59 +00:00
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.
This commit is contained in:
parent
b28348066e
commit
5c14a24ce1
9 changed files with 28 additions and 20 deletions
|
@ -218,7 +218,7 @@ bool VertexShaderCache::SetShader(u32 components)
|
|||
g_vs_disk_cache.Sync();
|
||||
|
||||
bool success = InsertByteCode(uid, bytecode, bytecodelen, true);
|
||||
if (success)
|
||||
if (g_ActiveConfig.bEnableShaderDebugging && success)
|
||||
{
|
||||
vshaders[uid].code = code;
|
||||
GetSafeVertexShaderId(&vshaders[uid].safe_uid, components);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue