You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param multiSamples Set the number of samples to use for this image,
* setting this to a value higher than 1 turns this image/texture
* into a multisample texture (on OpenGL3.1 and higher).
*/
publicvoidsetMultiSamples(intmultiSamples) {
if (multiSamples <= 0)
thrownewIllegalArgumentException("multiSamples must be > 0");
if (getData(0) != null)
thrownewIllegalArgumentException("Cannot upload data as multisample texture");
if (hasMipmaps())
thrownewIllegalArgumentException("Multisample textures do not support mipmaps");
this.multiSamples = multiSamples;
}
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.
The text was updated successfully, but these errors were encountered:
jmonkeyengine/jme3-core/src/main/java/com/jme3/texture/Image.java
Lines 939 to 955 in ec7f6e1
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.
The text was updated successfully, but these errors were encountered: