From 994372c72554d7b39129f784351999ef3f36a1e1 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sun, 17 Jan 2010 22:23:05 +0000 Subject: [PATCH] (build fix in debugfast mode) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4872 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoDX9/Src/VertexShaderCache.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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