mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(GL) Minor tweaks
This commit is contained in:
parent
db47e069c2
commit
3f900424ca
4
gfx/gl.c
4
gfx/gl.c
@ -988,7 +988,7 @@ static void gl_frame_fbo(gl_t *gl, shader_backend_t *shader,
|
|||||||
shader->use(gl, i + 1);
|
shader->use(gl, i + 1);
|
||||||
glBindTexture(GL_TEXTURE_2D, gl->fbo_texture[i - 1]);
|
glBindTexture(GL_TEXTURE_2D, gl->fbo_texture[i - 1]);
|
||||||
|
|
||||||
if (gl->shader->mipmap_input(i + 1))
|
if (shader->mipmap_input(i + 1))
|
||||||
glGenerateMipmap(GL_TEXTURE_2D);
|
glGenerateMipmap(GL_TEXTURE_2D);
|
||||||
|
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
@ -1034,7 +1034,7 @@ static void gl_frame_fbo(gl_t *gl, shader_backend_t *shader,
|
|||||||
|
|
||||||
glBindTexture(GL_TEXTURE_2D, gl->fbo_texture[gl->fbo_pass - 1]);
|
glBindTexture(GL_TEXTURE_2D, gl->fbo_texture[gl->fbo_pass - 1]);
|
||||||
|
|
||||||
if (gl->shader->mipmap_input(gl->fbo_pass + 1))
|
if (shader->mipmap_input(gl->fbo_pass + 1))
|
||||||
glGenerateMipmap(GL_TEXTURE_2D);
|
glGenerateMipmap(GL_TEXTURE_2D);
|
||||||
|
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user