mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 11:21:06 +01:00
Same for OPENGL2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user