Skip to content

Commit

Permalink
Bring back glBindFramebufferEXT() in OpenGL.
Browse files Browse the repository at this point in the history
Did not intentionally remove this.  Broke Intel and AMD cards which
did not yet support the ARB_framebuffer_object extension.
  • Loading branch information
unknownbrackets committed Sep 8, 2014
1 parent d5711f3 commit c606067
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gfx_es2/fbo.cpp
Expand Up @@ -293,7 +293,13 @@ static void fbo_bind_fb_target(bool read, GLuint name) {
GLenum target = fbo_get_fb_target(read, &cached);

if (*cached != name) {
glBindFramebuffer(target, name);
if (gl_extensions.FBO_ARB) {
glBindFramebuffer(target, name);
} else {
#ifndef USING_GLES2
glBindFramebufferEXT(target, name);
#endif
}
*cached = name;
}
}
Expand Down

0 comments on commit c606067

Please sign in to comment.