public static int extractVersion(String version) {
        if (version.startsWith("WebGL 2.0")) return 300;
        Matcher m = GLVERSION_PATTERN.matcher(version);
        if (m.matches()) {
            int major = Integer.parseInt(m.group(1));
            int minor = Integer.parseInt(m.group(2));
            if (minor >= 10 && minor % 10 == 0) {
                // some versions can look like "1.30" instead of "1.3".
                // make sure to correct for this
                minor /= 10;
            }
            return major * 100 + minor * 10;
        } else {
            return -1;
        }
    }
Enable/Disable default automatic generation of mipmaps for framebuffers
@param v  Default is true
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java