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

Image#setMultiSample incorrectly throws exceptions #2250

Closed codex128 closed 1 month ago

codex128 commented 2 months ago

https://github.com/jMonkeyEngine/jmonkeyengine/blob/ec7f6e1f3304d3a6378393d0bb8c820996eed406/jme3-core/src/main/java/com/jme3/texture/Image.java#L939-L955

If the argument is 1, that is supposed to make the image not multisampled according to the documentation, but exceptions can still be thrown as if the image was multisampled.