From 702dd09d3f076ce865cf61ad22fa5f91e12f5fd8 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 27 Nov 2024 22:35:29 +0100 Subject: [PATCH] Revert "fix ogl screenshots" This reverts commit 56cd789eea8a315a1263fd241ac433de22886918. --- src/hardware/r_opengl/r_opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 36ae918b0..e6ff6db06 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -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);