Prepare to map DeleteFramebuffersEXT like this

This commit is contained in:
twinaphex 2017-12-04 04:18:28 +01:00
parent 52e7a533f0
commit b2fbb9aeda
3 changed files with 5 additions and 14 deletions

View File

@ -38,17 +38,6 @@
#define glFramebufferRenderbuffer glFramebufferRenderbufferOES
#define glRenderbufferStorage glRenderbufferStorageOES
#define glDeleteRenderbuffers glDeleteRenderbuffersOES
#elif (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
#define glGenFramebuffers glGenFramebuffersEXT
#define glBindFramebuffer glBindFramebufferEXT
#define glFramebufferTexture2D glFramebufferTexture2DEXT
#define glCheckFramebufferStatus glCheckFramebufferStatusEXT
#define glDeleteFramebuffers glDeleteFramebuffersEXT
#define glGenRenderbuffers glGenRenderbuffersEXT
#define glBindRenderbuffer glBindRenderbufferEXT
#define glFramebufferRenderbuffer glFramebufferRenderbufferEXT
#define glRenderbufferStorage glRenderbufferStorageEXT
#define glDeleteRenderbuffers glDeleteRenderbuffersEXT
#endif
#if defined(HAVE_PSGL)

View File

@ -424,9 +424,7 @@ static void gl2_renderchain_deinit_fbo(void *data)
return;
glDeleteTextures(gl->fbo_pass, gl->fbo_texture);
if (gl->fbo)
glDeleteFramebuffers(gl->fbo_pass, gl->fbo);
glDeleteFramebuffers(gl->fbo_pass, gl->fbo);
memset(gl->fbo_texture, 0, sizeof(gl->fbo_texture));
memset(gl->fbo, 0, sizeof(gl->fbo));

View File

@ -308,7 +308,11 @@ const struct rglgen_sym_map rglgen_symbol_map[] = {
SYM(GetRenderbufferParameteriv),
SYM(IsFramebuffer),
SYM(BindFramebuffer),
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
SYM(DeleteFramebuffersEXT),
#else
SYM(DeleteFramebuffers),
#endif
SYM(GenFramebuffers),
SYM(CheckFramebufferStatus),
SYM(FramebufferTexture1D),