aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-jogl/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'ardor3d-jogl/src/main')
-rw-r--r--ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java6
1 files changed, 6 insertions, 0 deletions
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