From 454a7d8ef957a5d90de5acd1acda4d2f44a352e5 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 26 Dec 2018 03:02:43 +0900 Subject: [PATCH] graphicsdriver/opengl: Bug fix: misspelling on variables Fixes #764 --- internal/graphicsdriver/opengl/program.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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