gl: GL_READ_FRAMEBUFFER doesn't exist in GLES2

and glBindFramebuffer isn't needed at this point
This commit is contained in:
Flyinghead 2024-06-19 15:06:13 +02:00
parent e3a1440e25
commit 245b9043c5
1 changed files with 0 additions and 2 deletions

View File

@ -861,9 +861,7 @@ bool OpenGLRenderer::GetLastFrame(std::vector<u8>& data, int& width, int& height
}
drawQuad(framebuffer->getTexture(), config::Rotate90, false, vertices);
glBindFramebuffer(GL_FRAMEBUFFER, 0);
data.resize(width * height * 3);
dstFramebuffer.bind(GL_READ_FRAMEBUFFER);
glPixelStorei(GL_PACK_ALIGNMENT, 1);
if (gl.is_gles)
{