graphicsdriver/opengl: Bug fix: misspelling on variables

Fixes #764
This commit is contained in:
Hajime Hoshi 2018-12-26 03:02:43 +09:00
parent 99e4c874fe
commit 454a7d8ef9

View File

@ -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