From 8f0509fa299e51c20abbccff1c9db4fb73010f1e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 25 Aug 2014 01:39:48 +0200 Subject: [PATCH] (GL) Fix build in case HAVE_FBO is not defined --- gfx/gl.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index c680f46431..71fcc2faf6 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -357,6 +357,19 @@ void apple_bind_game_view_fbo(void); #define gl_bind_backbuffer() glBindFramebuffer(RARCH_GL_FRAMEBUFFER, 0) #endif +static inline GLenum min_filter_to_mag(GLenum type) +{ + switch (type) + { + case GL_LINEAR_MIPMAP_LINEAR: + return GL_LINEAR; + case GL_NEAREST_MIPMAP_NEAREST: + return GL_NEAREST; + default: + return type; + } +} + #ifdef HAVE_FBO static void gl_shader_scale(gl_t *gl, unsigned index, struct gfx_fbo_scale *scale) { @@ -454,18 +467,6 @@ static void gl_compute_fbo_geometry(gl_t *gl, unsigned width, unsigned height, } } -static inline GLenum min_filter_to_mag(GLenum type) -{ - switch (type) - { - case GL_LINEAR_MIPMAP_LINEAR: - return GL_LINEAR; - case GL_NEAREST_MIPMAP_NEAREST: - return GL_NEAREST; - default: - return type; - } -} static void gl_create_fbo_textures(gl_t *gl) {