Mojo2 SetViewport()

Monkey Forums/Monkey Bug Reports/Mojo2 SetViewport()

Richard Betson(Posted 2015) [#1]
Hi,

I am getting a memory leak when using (a renderer instance) 'renderer.SetViewport()' recursively. Eventually the compiled application will fail with an 'Incomplete framebuffer' runtime error. Bug?

Below is a modified renderer demo with the following added in the Render() method.
Local offset:Int=Sin(Millisecs())*20
renderer.SetViewport( 0,0,DeviceWidth-offset,DeviceHeight )

Tested with 86a and on Linux Mint 17.2 (Ubuntu 14.04Lts). Target GLFW.
.

Modified renderer demo.



marksibly(Posted 2015) [#2]
Yes, that's a big ugly leak!

Fixed in v86b - now available.


Richard Betson(Posted 2015) [#3]
Fixed in v86b - now available.

Seems to be working great now (Faaast fix). :) Thanks!