From 93abcf9595247696235131b4bf21e9053f872b9e Mon Sep 17 00:00:00 2001 From: Tommi Komulainen Date: Thu, 5 Jun 2008 21:40:59 +0000 Subject: [PATCH] cogl: define GL_READ/DRAW_FRAMEBUFFER_EXT if not available Bug 913 - cogl fails to build on OSX * clutter/cogl/gl/cogl-fbo.c: define GL_READ_FRAMEBUFFER_EXT and GL_DRAW_FRAMEBUFFER_EXT if not defined in the build system. The #ifdef can fail if they're not #defines but variables or enums. As the values are supposed to be industry standard even then it shouldn't have ill effects. --- gl/cogl-fbo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gl/cogl-fbo.c b/gl/cogl-fbo.c index d920dd96b..ae598461d 100644 --- a/gl/cogl-fbo.c +++ b/gl/cogl-fbo.c @@ -48,6 +48,13 @@ #define glBlitFramebufferEXT ctx->pf_glBlitFramebufferEXT #define glRenderbufferStorageMultisampleEXT ctx->pf_glRenderbufferStorageMultisampleEXT +#ifndef GL_READ_FRAMEBUFFER_EXT +#define GL_READ_FRAMEBUFFER_EXT 0x8CA8 +#endif +#ifndef GL_DRAW_FRAMEBUFFER_EXT +#define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9 +#endif + static void _cogl_offscreen_free (CoglFbo *fbo); COGL_HANDLE_DEFINE (Fbo, offscreen, fbo_handles);