mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
Removed extension check for shaders, VBOs and FBOs from PGraphicsOpenGL, moved to PGL in Java mode
This commit is contained in:
@@ -5718,19 +5718,6 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
OPENGL_VERSION = pgl.getString(PGL.VERSION);
|
||||
OPENGL_EXTENSIONS = pgl.getString(PGL.EXTENSIONS);
|
||||
GLSL_VERSION = pgl.getString(PGL.SHADING_LANGUAGE_VERSION);
|
||||
|
||||
if (-1 == OPENGL_EXTENSIONS.indexOf("_framebuffer_object")) {
|
||||
throw new RuntimeException("No framebuffer objects available");
|
||||
}
|
||||
if (-1 == OPENGL_EXTENSIONS.indexOf("_vertex_buffer_object")) {
|
||||
throw new RuntimeException("No vertex buffer objects available");
|
||||
}
|
||||
if (-1 == OPENGL_EXTENSIONS.indexOf("_vertex_shader")) {
|
||||
throw new RuntimeException("No vertex shaders available");
|
||||
}
|
||||
if (-1 == OPENGL_EXTENSIONS.indexOf("_fragment_shader")) {
|
||||
throw new RuntimeException("No fragment shaders available");
|
||||
}
|
||||
|
||||
npotTexSupported = -1 < OPENGL_EXTENSIONS.indexOf("_texture_non_power_of_two");
|
||||
autoMipmapGenSupported = -1 < OPENGL_EXTENSIONS.indexOf("_generate_mipmap");
|
||||
|
||||
Reference in New Issue
Block a user