diff --git a/Source/Plugins/Plugin_VideoDX9/Src/VertexShaderCache.cpp b/Source/Plugins/Plugin_VideoDX9/Src/VertexShaderCache.cpp index a0f2895e76..7676f99982 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/VertexShaderCache.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/VertexShaderCache.cpp @@ -259,9 +259,7 @@ bool VertexShaderCache::InsertByteCode(const VERTEXSHADERUID &uid, const u8 *byt VSCacheEntry entry; entry.shader = shader; entry.frameCount = frameCount; -#if defined(_DEBUG) || defined(DEBUGFAST) - entry.code = code; -#endif + vshaders[uid] = entry; last_entry = &vshaders[uid]; if (!shader) @@ -280,9 +278,6 @@ bool VertexShaderCache::InsertByteCode(const VERTEXSHADERUID &uid, const u8 *byt #if defined(_DEBUG) || defined(DEBUGFAST) std::string VertexShaderCache::GetCurrentShaderCode() { - if (last_entry) - return last_entry->code; - else - return "(no shader)\n"; + return "(N/A)\n"; } #endif \ No newline at end of file