Call gl_update_tex_filter in set_shader.

This commit is contained in:
Themaister 2013-04-14 01:31:32 +02:00
parent 241d55ccbf
commit e1c1e4d414
1 changed files with 3 additions and 3 deletions

View File

@ -566,7 +566,7 @@ static void gl_update_tex_filter_frame(gl_t *gl)
{ {
bool smooth = false; bool smooth = false;
if (!gl_shader_filter_type(gl, 1, &smooth)) if (!gl_shader_filter_type(gl, 1, &smooth))
return; smooth = g_settings.video.smooth;
GLuint new_filt = smooth ? GL_LINEAR : GL_NEAREST; GLuint new_filt = smooth ? GL_LINEAR : GL_NEAREST;
if (new_filt == gl->tex_filter) if (new_filt == gl->tex_filter)
@ -590,8 +590,6 @@ void gl_init_fbo(void *data, unsigned width, unsigned height)
{ {
gl_t *gl = (gl_t*)data; gl_t *gl = (gl_t*)data;
gl_update_tex_filter_frame(gl);
if (gl_shader_num(gl) == 0) if (gl_shader_num(gl) == 0)
return; return;
@ -1983,6 +1981,8 @@ static bool gl_set_shader(void *data, enum rarch_shader_type type, const char *p
return false; return false;
} }
gl_update_tex_filter_frame(gl);
#ifdef HAVE_FBO #ifdef HAVE_FBO
// Set up render to texture again. // Set up render to texture again.
gl_init_fbo(gl, gl->tex_w, gl->tex_h); gl_init_fbo(gl, gl->tex_w, gl->tex_h);