summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2013-03-04 10:20:55 +0100
committerdegasus <wickmarkus@web.de>2013-03-04 10:20:55 +0100
commite4f8d7b4c8a67e9505de31e6e52ecb087e8be7a7 (patch)
tree600143adfc11e38794d497129f1e62f9962cde6b /Source
parentae46a2f1028f375b300e314479bb671d937fc253 (diff)
fix debug build
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp1
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp5
2 files changed, 4 insertions, 2 deletions
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)