jMonkeyEngine / jmonkeyengine

A complete 3-D game development suite written in Java.
http://jmonkeyengine.org
BSD 3-Clause "New" or "Revised" License
3.74k stars 1.12k forks source link

RenderManager#renderViewPort method leaves a clipRect in the OpenGL state #2224

Closed richardTingle closed 3 months ago

richardTingle commented 3 months ago

Within GLRenderer the renderViewPort method leaves a clipRect in the OpenGL state. This means that other calls to GLRenderer #copyFrameBuffer may give surprising (clipped) results

GLRenderer#renderViewPort should clear the clipRect state once it has finished its render

See https://hub.jmonkeyengine.org/t/blitted-to-frame-buffer-only-copies-part-of-source/47564 for an example of the problem caused

(I intend to put in a PR for this myself)