diff --git a/gfx/gl.c b/gfx/gl.c index 1902680f36..3b4f6eab8e 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -698,7 +698,7 @@ static bool gl_init_hw_render(gl_t *gl, unsigned width, unsigned height) GLint max_fbo_size = 0; GLint max_renderbuffer_size = 0; glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max_fbo_size); - glGetIntegerv(GL_MAX_RENDERBUFFER_SIZE, &max_renderbuffer_size); + glGetIntegerv(RARCH_GL_MAX_RENDERBUFFER_SIZE, &max_renderbuffer_size); RARCH_LOG("[GL]: Max texture size: %d px, renderbuffer size: %u px.\n", max_fbo_size, max_renderbuffer_size); if (!check_fbo_proc(gl)) diff --git a/gfx/gl_common.h b/gfx/gl_common.h index 9aa41b0846..cfe5a0f0ec 100644 --- a/gfx/gl_common.h +++ b/gfx/gl_common.h @@ -93,6 +93,12 @@ #define RARCH_GL_STENCIL_ATTACHMENT GL_STENCIL_ATTACHMENT #endif +#ifdef OSX_PPC +#define RARCH_GL_MAX_RENDERBUFFER_SIZE GL_MAX_RENDERBUFFER_SIZE_EXT +#else +#define RARCH_GL_MAX_RENDERBUFFER_SIZE GL_MAX_RENDERBUFFER_SIZE +#endif + static inline bool gl_check_error(void) { int error = glGetError();