mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 18:40:45 +00:00
(build fix in debugfast mode)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4872 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
53408a695f
commit
994372c725
@ -259,9 +259,7 @@ bool VertexShaderCache::InsertByteCode(const VERTEXSHADERUID &uid, const u8 *byt
|
|||||||
VSCacheEntry entry;
|
VSCacheEntry entry;
|
||||||
entry.shader = shader;
|
entry.shader = shader;
|
||||||
entry.frameCount = frameCount;
|
entry.frameCount = frameCount;
|
||||||
#if defined(_DEBUG) || defined(DEBUGFAST)
|
|
||||||
entry.code = code;
|
|
||||||
#endif
|
|
||||||
vshaders[uid] = entry;
|
vshaders[uid] = entry;
|
||||||
last_entry = &vshaders[uid];
|
last_entry = &vshaders[uid];
|
||||||
if (!shader)
|
if (!shader)
|
||||||
@ -280,9 +278,6 @@ bool VertexShaderCache::InsertByteCode(const VERTEXSHADERUID &uid, const u8 *byt
|
|||||||
#if defined(_DEBUG) || defined(DEBUGFAST)
|
#if defined(_DEBUG) || defined(DEBUGFAST)
|
||||||
std::string VertexShaderCache::GetCurrentShaderCode()
|
std::string VertexShaderCache::GetCurrentShaderCode()
|
||||||
{
|
{
|
||||||
if (last_entry)
|
return "(N/A)\n";
|
||||||
return last_entry->code;
|
|
||||||
else
|
|
||||||
return "(no shader)\n";
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
Loading…
x
Reference in New Issue
Block a user