fix ogl screenshots

This commit is contained in:
Alug committed 2024-11-27 17:12:57 +01:00
1 parent d8e6e17ee5
commit 56cd789eea
1 file changed
+1 -1
+1 -1
View File
@@ -1303,7 +1303,7 @@ void GL_ReadScreenTexture(int tex, UINT16 *dst_data)
// if some other screen texture is needed, draw it to the framebuffer
// and draw generic2 back after reading the framebuffer.
// this hack is for some reason **much** faster than the simple solution of using glGetTexImage.
if (tex != HWD_SCREENTEXTURE_GENERIC2)
//if (tex != HWD_SCREENTEXTURE_GENERIC2)
GL_DrawScreenTexture(tex, NULL, 0);
pglPixelStorei(GL_PACK_ALIGNMENT, 1);
pglReadPixels(0, 0, screen_width, screen_height, GL_RGB, GL_UNSIGNED_BYTE, dst_data);