From c1bd2d25c6576ed176aece5c4942d5635406b7f9 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 18 May 2013 21:23:59 +0200 Subject: [PATCH] Fix desktop GL build. --- gfx/gl.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gfx/gl.c b/gfx/gl.c index 78bcb20eff..b4aa67df5c 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -698,6 +698,18 @@ bool gl_init_hw_render(gl_t *gl, unsigned width, unsigned height) const char *err = NULL; switch (status) { +#ifndef GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT +#endif +#ifndef GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS +#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT +#endif +#ifndef GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT +#endif +#ifndef GL_FRAMEBUFFER_UNSUPPORTED +#define GL_FRAMEBUFFER_UNSUPPORTED GL_FRAMEBUFFER_UNSUPPORTED_EXT +#endif case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: err = "Incomplete Attachment"; break; case GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS: err = "Incomplete Dimensions"; break; case GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: err = "Missing Attachment"; break;