diff options
Diffstat (limited to 'guilib/FrameBufferObject.h')
-rw-r--r-- | guilib/FrameBufferObject.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/guilib/FrameBufferObject.h b/guilib/FrameBufferObject.h index 6134678e22..d86182ffc9 100644 --- a/guilib/FrameBufferObject.h +++ b/guilib/FrameBufferObject.h @@ -24,7 +24,7 @@ #include "system.h" // for HAS_GL -#ifdef HAS_GL +#if defined(HAS_GL) || HAS_GLES == 2 // // CFrameBufferObject @@ -45,6 +45,11 @@ // glBindTexture(GL_TEXTURE_2D, fbo->Texture()); // +#if HAS_GLES == 2 +// For OpenGL ES2.0, FBO are not extensions but part of the API. +#define glBindFramebufferEXT glBindFramebuffer +#define GL_FRAMEBUFFER_EXT GL_FRAMEBUFFER +#endif class CFrameBufferObject { |