public void setMultiSamples(int multiSamples) {
        if (multiSamples <= 0) {
            throw new IllegalArgumentException("multiSamples must be > 0");
        }

        if (multiSamples > 1) {
            if (getData(0) != null) {
                throw new IllegalArgumentException("Cannot upload data as multisample texture");
            }

            if (hasMipmaps()) {
                throw new IllegalArgumentException("Multisample textures do not support mipmaps");
            }
        }

        this.multiSamples = multiSamples;
    }
@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).
jme3-core/src/main/java/com/jme3/texture/Image.java