fix debug build

This commit is contained in:
degasus 2013-03-04 10:20:55 +01:00
parent ae46a2f102
commit e4f8d7b4c8
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,7 @@
#include "StreamBuffer.h" #include "StreamBuffer.h"
#include "Debugger.h" #include "Debugger.h"
#include "Statistics.h" #include "Statistics.h"
#include "ImageWrite.h"
namespace OGL namespace OGL
{ {

View File

@ -304,13 +304,14 @@ void VertexManager::vFlush()
if (g_ActiveConfig.iLog & CONF_SAVESHADERS) if (g_ActiveConfig.iLog & CONF_SAVESHADERS)
{ {
// save the shaders // save the shaders
ProgramShaderCache::PCacheEntry prog = ProgramShaderCache::GetShaderProgram();
char strfile[255]; char strfile[255];
sprintf(strfile, "%sps%.3d.txt", File::GetUserPath(D_DUMPFRAMES_IDX).c_str(), g_ActiveConfig.iSaveTargetId); sprintf(strfile, "%sps%.3d.txt", File::GetUserPath(D_DUMPFRAMES_IDX).c_str(), g_ActiveConfig.iSaveTargetId);
std::ofstream fps(strfile); 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); sprintf(strfile, "%svs%.3d.txt", File::GetUserPath(D_DUMPFRAMES_IDX).c_str(), g_ActiveConfig.iSaveTargetId);
std::ofstream fvs(strfile); std::ofstream fvs(strfile);
fvs << vs->strprog.c_str(); fvs << prog.shader.strvprog.c_str();
} }
if (g_ActiveConfig.iLog & CONF_SAVETARGETS) if (g_ActiveConfig.iLog & CONF_SAVETARGETS)