diff --git a/internal/graphicsdriver/opengl/program.go b/internal/graphicsdriver/opengl/program.go index 8528a60cf..94611cbfa 100644 --- a/internal/graphicsdriver/opengl/program.go +++ b/internal/graphicsdriver/opengl/program.go @@ -263,7 +263,7 @@ func (d *Driver) useProgram(mode graphics.CompositeMode, colorM *affine.ColorM, vw := destination.framebuffer.width vh := destination.framebuffer.height - if d.state.lastViewportWidth != vw || d.state.lastSourceHeight != vh { + if d.state.lastViewportWidth != vw || d.state.lastViewportHeight != vh { d.context.uniformFloats(program, "viewport_size", []float32{float32(vw), float32(vh)}) d.state.lastViewportWidth = vw d.state.lastViewportHeight = vh