mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
Attempt fixing OpenGL 3.x screenshot
This commit is contained in:
@@ -1667,6 +1667,9 @@ OpenGLRenderer::render()
|
||||
|
||||
unsigned char *rgba = (unsigned char *)calloc(1, width * height * 4);
|
||||
|
||||
glw.glFinish();
|
||||
glw.glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||
glw.glReadBuffer(GL_BACK);
|
||||
glw.glFinish();
|
||||
glw.glReadPixels(window_rect.x, window_rect.y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, rgba);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user