mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 09:35:21 +00:00
Prepare to map DeleteFramebuffersEXT like this
This commit is contained in:
parent
52e7a533f0
commit
b2fbb9aeda
@ -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)
|
||||
|
@ -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));
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user