Use GL_READ/DRAW_FRAMEBUFFER on desktop GL.

Even for < OpenGL 4.3 (GLES3 = false.)
This commit is contained in:
Unknown W. Brackets committed 2014-01-04 11:13:44 -08:00
1 parent 73f612aaa8
commit ed8df1005d
1 file changed
+8
+8
View File
@@ -253,7 +253,11 @@ void fbo_unbind() {
void fbo_bind_as_render_target(FBO *fbo) {
if (gl_extensions.FBO_ARB) {
#ifndef USING_GLES2
if (true) {
#else
if (gl_extensions.GLES3) {
#endif
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo->handle);
} else {
// This will collide with bind_for_read - but there's nothing in ES 2.0
@@ -269,7 +273,11 @@ void fbo_bind_as_render_target(FBO *fbo) {
void fbo_bind_for_read(FBO *fbo) {
if (gl_extensions.FBO_ARB) {
#ifndef USING_GLES2
if (true) {
#else
if (gl_extensions.GLES3) {
#endif
glBindFramebuffer(GL_READ_FRAMEBUFFER, fbo->handle);
} else {
// This will collide with bind_as_render_target - but there's nothing in ES 2.0