summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
Diffstat (limited to 'video/out')
-rw-r--r--video/out/gpu/video.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c
index 2e0cfbd19b..e4c4ee9290 100644
--- a/video/out/gpu/video.c
+++ b/video/out/gpu/video.c
@@ -1193,16 +1193,8 @@ static void dispatch_compute(struct gl_video *p, int w, int h,
if (!s->tex)
continue;
- // We need to rescale the coordinates to the true texture size
- char *tex_scale = mp_tprintf(32, "tex_scale%d", n);
- gl_sc_uniform_vec2(p->sc, tex_scale, (float[2]){
- (float)s->w / s->tex->params.w,
- (float)s->h / s->tex->params.h,
- });
-
- PRELUDE("#define texmap%d_raw(id) (tex_scale%d * outcoord(id))\n", n, n);
- PRELUDE("#define texmap%d(id) (texture_rot%d * texmap%d_raw(id) + "
- "pixel_size%d * texture_off%d)\n", n, n, n, n, n);
+ PRELUDE("#define texmap%d(id) (texture_rot%d * outcoord(id) + "
+ "pixel_size%d * texture_off%d)\n", n, n, n, n);
PRELUDE("#define texcoord%d texmap%d(gl_GlobalInvocationID)\n", n, n);
}