From c63872891709d2c058a1426a4d6fe8eaf186b828 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 12 Mar 2013 00:00:42 +0100 Subject: [PATCH] (GL) Don't needlessly compile in FBO functions if HAVE_FBO isn't defined --- gfx/gl.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index 3521c92053..de54f8725e 100644 --- a/gfx/gl.c +++ b/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) {