(GL) Add RARCH_GL_MAX_RENDERBUFFER_SIZE

This commit is contained in:
twinaphex 2014-05-22 21:00:17 +02:00
parent 194f90f3f9
commit d636d4a10a
2 changed files with 7 additions and 1 deletions

View File

@ -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))

View File

@ -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();