diff --git a/java/libraries/opengl2/src/processing/opengl2/PGraphicsOpenGL2.java b/java/libraries/opengl2/src/processing/opengl2/PGraphicsOpenGL2.java index 1b436fb60..6b4e1c3be 100644 --- a/java/libraries/opengl2/src/processing/opengl2/PGraphicsOpenGL2.java +++ b/java/libraries/opengl2/src/processing/opengl2/PGraphicsOpenGL2.java @@ -145,10 +145,11 @@ public class PGraphicsOpenGL2 extends PGraphics { static protected float maxLineWidth; static protected int maxTextureUnits; - /** OpenGL version strings */ + /** OpenGL information strings */ static public String OPENGL_VENDOR; static public String OPENGL_RENDERER; - static public String OPENGL_VERSION; + static public String OPENGL_VERSION; + static public String OPENGL_EXTENSIONS; // ........................................................ @@ -6835,26 +6836,26 @@ public class PGraphicsOpenGL2 extends PGraphics { vboSupported = false; fboSupported = false; fboMultisampleSupported = false; - String extensions = gl.glGetString(GL.GL_EXTENSIONS); - if (-1 < extensions.indexOf("texture_non_power_of_two")) { + OPENGL_EXTENSIONS = gl.glGetString(GL.GL_EXTENSIONS); + if (-1 < OPENGL_EXTENSIONS.indexOf("texture_non_power_of_two")) { npotTexSupported = true; } - if (-1 < extensions.indexOf("generate_mipmap")) { + if (-1 < OPENGL_EXTENSIONS.indexOf("generate_mipmap")) { mipmapGeneration = true; } - if (-1 < extensions.indexOf("matrix_get")) { + if (-1 < OPENGL_EXTENSIONS.indexOf("matrix_get")) { matrixGetSupported = true; } - if (-1 < extensions.indexOf("texture_env_crossbar")) { + if (-1 < OPENGL_EXTENSIONS.indexOf("texture_env_crossbar")) { texenvCrossbarSupported = true; } - if (-1 < extensions.indexOf("vertex_buffer_object")) { + if (-1 < OPENGL_EXTENSIONS.indexOf("vertex_buffer_object")) { vboSupported = true; } - if (-1 < extensions.indexOf("framebuffer_object")) { + if (-1 < OPENGL_EXTENSIONS.indexOf("framebuffer_object")) { fboSupported = true; } - if (-1 < extensions.indexOf("framebuffer_multisample")) { + if (-1 < OPENGL_EXTENSIONS.indexOf("framebuffer_multisample")) { fboMultisampleSupported = true; }