mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-18 03:19:19 +02:00
Migration cleanup and renderer documentation
This commit is contained in:
@@ -42,7 +42,8 @@ void screenshot_manager::screenshot_save_thread( char *img, int w, int h )
|
||||
|
||||
void screenshot_manager::make_screenshot()
|
||||
{
|
||||
auto img = new char[Global.fb_size.x * Global.fb_size.y * 4];
|
||||
// rows are tightly packed RGB: the renderer sets GL_PACK_ALIGNMENT to 1
|
||||
auto img = new char[Global.fb_size.x * Global.fb_size.y * 3];
|
||||
glReadPixels(0, 0, Global.fb_size.x, Global.fb_size.y, GL_RGB, GL_UNSIGNED_BYTE, (GLvoid*)img);
|
||||
//m7t: use pbo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user