mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
parent
99e4c874fe
commit
454a7d8ef9
@ -263,7 +263,7 @@ func (d *Driver) useProgram(mode graphics.CompositeMode, colorM *affine.ColorM,
|
|||||||
|
|
||||||
vw := destination.framebuffer.width
|
vw := destination.framebuffer.width
|
||||||
vh := destination.framebuffer.height
|
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.context.uniformFloats(program, "viewport_size", []float32{float32(vw), float32(vh)})
|
||||||
d.state.lastViewportWidth = vw
|
d.state.lastViewportWidth = vw
|
||||||
d.state.lastViewportHeight = vh
|
d.state.lastViewportHeight = vh
|
||||||
|
Loading…
Reference in New Issue
Block a user