From 3f900424ca520a8648e9fd8faa0769d8147a5115 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 3 Oct 2014 14:16:34 +0200 Subject: [PATCH] (GL) Minor tweaks --- gfx/gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index d11f3609b3..087e412bb8 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -988,7 +988,7 @@ static void gl_frame_fbo(gl_t *gl, shader_backend_t *shader, shader->use(gl, 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); 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]); - if (gl->shader->mipmap_input(gl->fbo_pass + 1)) + if (shader->mipmap_input(gl->fbo_pass + 1)) glGenerateMipmap(GL_TEXTURE_2D); glClear(GL_COLOR_BUFFER_BIT);