littlektframework / littlekt

A multiplatform WebGPU 2D game framework written in Kotlin. Build your own game engine on top.
https://littlekt.com
Apache License 2.0
321 stars 12 forks source link

Remove `FrameBuffer` nestability due to poor performance. #230

Closed LeHaine closed 9 months ago

LeHaine commented 9 months ago

Multiple calls to glGetIntegerv caused poor performance when using multiple FBOs. Removing such kills the ability to nest FBOs upon each other.

FrameBuffer.end() will now bind to the default framebuffer and takes an optional viewport position and size.