gles2 build fix

This commit is contained in:
Flyinghead 2019-05-21 19:11:47 +02:00
parent 2e5eaa6e2b
commit d55d803c16
1 changed files with 2 additions and 0 deletions

View File

@ -1174,6 +1174,7 @@ bool render_output_framebuffer()
}
else
{
#ifndef GLES2
if (gl.ofbo.fbo == 0)
return false;
glBindFramebuffer(GL_READ_FRAMEBUFFER, gl.ofbo.fbo);
@ -1182,6 +1183,7 @@ bool render_output_framebuffer()
0, 0, screen_width, screen_height,
GL_COLOR_BUFFER_BIT, GL_LINEAR);
glBindFramebuffer(GL_FRAMEBUFFER, 0);
#endif
}
return true;
}