mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 19:45:07 +00:00
SLUDGE: Debug output lightmap image
This commit is contained in:
parent
949dcaa4e2
commit
49383e0aee
@ -400,6 +400,17 @@ bool GraphicsManager::loadLightMap(int v) {
|
||||
g_sludge->_resMan->finishAccess();
|
||||
setResourceForFatal(-1);
|
||||
|
||||
// Debug code to output light map image
|
||||
#if 0
|
||||
Common::DumpFile *outFile = new Common::DumpFile();
|
||||
Common::String outName = Common::String::format("lightmap_%i.png", v);
|
||||
outFile->open(outName);
|
||||
Image::writePNG(*outFile, _lightMap);
|
||||
outFile->finalize();
|
||||
outFile->close();
|
||||
delete outFile;
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user