- attempt to see if the screen shot capture can be fixed with a simple gl command
This commit is contained in:
parent
7d6e21b1e7
commit
a22586571e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user