summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 14ad3dee79..5ed831bfe5 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -1210,20 +1210,17 @@ static void pass_prescale(struct gl_video *p, int src_tex_num, int dst_tex_num,
switch(p->opts.prescale) {
case 1:
pass_superxbr(p->sc, planes, tex_num, step,
- p->opts.superxbr_opts, &transform);
+ tex_mul, p->opts.superxbr_opts, &transform);
break;
case 2:
pass_nnedi3(p->gl, p->sc, planes, tex_num, step,
- p->opts.nnedi3_opts, &transform);
+ tex_mul, p->opts.nnedi3_opts, &transform);
break;
default:
abort();
}
- if (tex_mul != 1.0) {
- GLSLF("color *= %f;\n", tex_mul);
- tex_mul = 1.0;
- }
+ tex_mul = 1.0;
gl_transform_trans(transform, offset);