diff --git a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp index 6513a62f2b..85957251b0 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp @@ -20,6 +20,7 @@ #include "StreamBuffer.h" #include "Debugger.h" #include "Statistics.h" +#include "ImageWrite.h" namespace OGL { diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp b/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp index 82bffd8dea..017c95d217 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp @@ -304,13 +304,14 @@ void VertexManager::vFlush() if (g_ActiveConfig.iLog & CONF_SAVESHADERS) { // save the shaders + ProgramShaderCache::PCacheEntry prog = ProgramShaderCache::GetShaderProgram(); char strfile[255]; sprintf(strfile, "%sps%.3d.txt", File::GetUserPath(D_DUMPFRAMES_IDX).c_str(), g_ActiveConfig.iSaveTargetId); std::ofstream fps(strfile); - fps << ps->strprog.c_str(); + fps << prog.shader.strpprog.c_str(); sprintf(strfile, "%svs%.3d.txt", File::GetUserPath(D_DUMPFRAMES_IDX).c_str(), g_ActiveConfig.iSaveTargetId); std::ofstream fvs(strfile); - fvs << vs->strprog.c_str(); + fvs << prog.shader.strvprog.c_str(); } if (g_ActiveConfig.iLog & CONF_SAVETARGETS)