mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-08 19:40:30 +00:00
(GL) Don't needlessly compile in FBO functions if HAVE_FBO isn't
defined
This commit is contained in:
parent
2e12f34932
commit
c638728917
8
gfx/gl.c
8
gfx/gl.c
@ -789,7 +789,6 @@ static void gl_set_rotation(void *data, unsigned rotation)
|
||||
}
|
||||
|
||||
#ifdef HAVE_FBO
|
||||
|
||||
static inline void gl_start_frame_fbo(void *data)
|
||||
{
|
||||
gl_t *gl = (gl_t*)data;
|
||||
@ -2245,9 +2244,9 @@ static void gl_set_filtering(void *data, unsigned index, bool smooth)
|
||||
glBindTexture(GL_TEXTURE_2D, gl->texture[gl->tex_index]);
|
||||
}
|
||||
|
||||
#ifdef HAVE_FBO
|
||||
static void gl_set_fbo_state(void *data, unsigned mode)
|
||||
{
|
||||
#ifdef HAVE_FBO
|
||||
gl_t *gl = (gl_t*)data;
|
||||
|
||||
switch (mode)
|
||||
@ -2262,10 +2261,6 @@ static void gl_set_fbo_state(void *data, unsigned mode)
|
||||
gl_init_fbo(gl, gl->tex_w, gl->tex_h);
|
||||
break;
|
||||
}
|
||||
#else
|
||||
(void)data;
|
||||
(void)mode;
|
||||
#endif
|
||||
}
|
||||
|
||||
static unsigned gl_get_fbo_state(void *data)
|
||||
@ -2273,6 +2268,7 @@ static unsigned gl_get_fbo_state(void *data)
|
||||
gl_t *gl = (gl_t*)data;
|
||||
return gl->fbo_inited ? FBO_INIT : FBO_DEINIT;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void gl_set_aspect_ratio(void *data, unsigned aspectratio_index)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user