- attempt to see if the screen shot capture can be fixed with a simple gl command

This commit is contained in:
Mark Vejvoda 2010-09-14 22:26:54 +00:00
parent 7d6e21b1e7
commit a22586571e

View File

@ -2860,6 +2860,7 @@ void Renderer::saveScreen(const string &path){
Pixmap2D pixmap(sm.getScreenW(), sm.getScreenH(), 3);
glFinish();
glReadPixels(0, 0, pixmap.getW(), pixmap.getH(), GL_RGB, GL_UNSIGNED_BYTE, pixmap.getPixels());
pixmap.saveTga(path);
}