From fdaa7aa1636d37874d85536b4835be8b17ed19f9 Mon Sep 17 00:00:00 2001 From: Neil C Smith Date: Tue, 28 Jul 2020 14:37:42 +0100 Subject: [PATCH] Comment out GL capability overrides. Causes framebuffer problems on macOS. --- .../main/java/processing/lwjgl/PLWJGL.java | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/processing-lwjgl/src/main/java/processing/lwjgl/PLWJGL.java b/processing-lwjgl/src/main/java/processing/lwjgl/PLWJGL.java index 6de97d9..b03dd95 100644 --- a/processing-lwjgl/src/main/java/processing/lwjgl/PLWJGL.java +++ b/processing-lwjgl/src/main/java/processing/lwjgl/PLWJGL.java @@ -107,42 +107,42 @@ public PLWJGL(PGraphicsOpenGL pg) { glu = new PGLU(); } - @Override - protected boolean hasFBOs() { - return GL.getCapabilities().GL_ARB_framebuffer_object; - } - - @Override - protected boolean hasShaders() { - // It is enough to check GL_ARB_shading_language_100 because it depends on - // ARB_shader_objects, ARB_fragment_shader and ARB_vertex_shader. - return GL.getCapabilities().GL_ARB_shading_language_100; - } - - @Override - protected boolean hasNpotTexSupport() { - return GL.getCapabilities().GL_ARB_texture_non_power_of_two; - } - - @Override - protected boolean hasAutoMipmapGenSupport() { - return GL.getCapabilities().glGenerateMipmap != 0; - } - - @Override - protected boolean hasFboMultisampleSupport() { - return GL.getCapabilities().GL_ARB_framebuffer_object; - } - - @Override - protected boolean hasPackedDepthStencilSupport() { - return GL.getCapabilities().GL_ARB_framebuffer_object; - } - - @Override - protected boolean hasAnisoSamplingSupport() { - return GL.getCapabilities().GL_ARB_texture_filter_anisotropic; - } +// @Override +// protected boolean hasFBOs() { +// return GL.getCapabilities().GL_ARB_framebuffer_object; +// } +// +// @Override +// protected boolean hasShaders() { +// // It is enough to check GL_ARB_shading_language_100 because it depends on +// // ARB_shader_objects, ARB_fragment_shader and ARB_vertex_shader. +// return GL.getCapabilities().GL_ARB_shading_language_100; +// } +// +// @Override +// protected boolean hasNpotTexSupport() { +// return GL.getCapabilities().GL_ARB_texture_non_power_of_two; +// } +// +// @Override +// protected boolean hasAutoMipmapGenSupport() { +// return GL.getCapabilities().glGenerateMipmap != 0; +// } +// +// @Override +// protected boolean hasFboMultisampleSupport() { +// return GL.getCapabilities().GL_ARB_framebuffer_object; +// } +// +// @Override +// protected boolean hasPackedDepthStencilSupport() { +// return GL.getCapabilities().GL_ARB_framebuffer_object; +// } +// +// @Override +// protected boolean hasAnisoSamplingSupport() { +// return GL.getCapabilities().GL_ARB_texture_filter_anisotropic; +// } ///////////////////////////////////////////////////////////