(GL) Fix build in case HAVE_FBO is not defined

This commit is contained in:
twinaphex 2014-08-25 01:39:48 +02:00
parent adc77bcd1d
commit 8f0509fa29

View File

@ -357,6 +357,19 @@ void apple_bind_game_view_fbo(void);
#define gl_bind_backbuffer() glBindFramebuffer(RARCH_GL_FRAMEBUFFER, 0) #define gl_bind_backbuffer() glBindFramebuffer(RARCH_GL_FRAMEBUFFER, 0)
#endif #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 #ifdef HAVE_FBO
static void gl_shader_scale(gl_t *gl, unsigned index, struct gfx_fbo_scale *scale) 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) static void gl_create_fbo_textures(gl_t *gl)
{ {