diff --git a/internal/graphicsdriver/opengl/program.go b/internal/graphicsdriver/opengl/program.go index 880e08927..951aaa45d 100644 --- a/internal/graphicsdriver/opengl/program.go +++ b/internal/graphicsdriver/opengl/program.go @@ -322,10 +322,9 @@ func (d *Driver) useProgram(mode graphics.CompositeMode, colorM *affine.ColorM, } } - sw := graphics.InternalImageSize(srcW) - sh := graphics.InternalImageSize(srcH) - if filter != graphics.FilterNearest { + sw := graphics.InternalImageSize(srcW) + sh := graphics.InternalImageSize(srcH) if d.state.lastSourceWidth != sw || d.state.lastSourceHeight != sh { d.context.uniformFloats(program, "source_size", []float32{float32(sw), float32(sh)}) d.state.lastSourceWidth = sw