forked from joejulian/gio
d9effdad8e
To use glCopyTexSubImage2D on the Samsung J2 it's not enough to set GL_READ_FRAMEBUFFER. This change binds GL_FRAMEBUFFER, setting both READ_FRAMEBUFFER and DRAW_FRAMEBUFFER, fixing the issue. Setting only GL_READ_FRAMEBUFFER was also a genuine bug, because OpenGL ES 2.0 doesn't support it. Signed-off-by: Elias Naur <mail@eliasnaur.com>