gl: GL_READ_FRAMEBUFFER doesn't exist in GLES2
and glBindFramebuffer isn't needed at this point
This commit is contained in:
parent
e3a1440e25
commit
245b9043c5
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue