mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
(GL) Fix build in case HAVE_FBO is not defined
This commit is contained in:
parent
adc77bcd1d
commit
8f0509fa29
25
gfx/gl.c
25
gfx/gl.c
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user