From 2c510f660483077dc419dc79b19f85608ba58283 Mon Sep 17 00:00:00 2001 From: Julien Gouesse Date: Fri, 30 Oct 2015 21:24:04 +0100 Subject: Disables the use of GLSL in GLJPanel used in JoglSwingCanvas as it caused too much troubles with other GLSL shaders and the wireframe state --- ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ardor3d-jogl/src/main/java') diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java index 4410604..847c15e 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java @@ -20,6 +20,12 @@ import com.jogamp.opengl.GLProfile; public class CapsUtil { + static { + // The GLSL mode of GLJPanel used in JoglSwingCanvas seems to cause a lot of troubles when using our own GLSL + // shaders and with the wireframe state. Therefore, it is disabled as early as possible + System.setProperty("jogl.gljpanel.noglsl", "true"); + } + public GLProfile getProfile() { // tries to get the most capable profile, programmable or fixed, desktop or embedded, forward or backward // compatible -- cgit v1.2.3