RawGL2ES2demo fails on the Mac
Posted by AlanObject on Sep 18, 2014; 12:26am
URL: https://forum.jogamp.org/RawGL2ES2demo-fails-on-the-Mac-tp4033162.html
Quick note on the setup: This is on a Mac with OS X 10.9.4, running with the Netbeans 8.0 IDE.
Instead of doing the manual compile described in the comments, I created this as a Maven-compiled project. The dependencies are right off the Wiki updated to version 2.2.0 as follows:
<dependency>
<groupId>org.jogamp.gluegen</groupId>
<artifactId>gluegen-rt-main</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.jogamp.jogl</groupId>
<artifactId>jogl-all-main</artifactId>
<version>2.2.0</version>
</dependency>
It seems to compile without any issues. When run, it brings up the window but fails out with the following output:
=========Start Output===============
Chosen GLCapabilities: GLCaps[rgba 8/8/8/8, trans-rgba 0x0/0/0/0, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono , hw, GLProfile[GL2ES2/GL4.hw], on-scr[.]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA GeForce GT 650M OpenGL Engine
GL_VERSION: 4.1 NVIDIA-8.26.26 310.40.45f01
GL3 core detected: explicit add #version 130 to shaders
Error compiling the vertex shader: ERROR: 0:1: '' : version '130' is not supported
ERROR: 0:2: '' : #version required and missing.
Exception in thread "main-AWTAnimator" com.jogamp.opengl.util.AnimatorBase$UncaughtAnimatorException: javax.media.opengl.GLException: Caught ThreadDeath: null on thread main-AWTAnimator
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:84)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:446)
===========Truncated Output===============
The exception is a separate problem but it doesn't bother me -- the init() method seems to have called System.exit() while the Animator thread was running. That can be fixed with a little extra code.
The problem seems to be the init program attempts to invoke version 130 shader support when it isn't supported. Any suggestion on how to fix this?