Login  Register

Re: RawGL2ES2demo fails on the Mac

Posted by AlanObject on Sep 18, 2014; 5:42pm
URL: https://forum.jogamp.org/RawGL2ES2demo-fails-on-the-Mac-tp4033162p4033167.html

I got the demo to run by modifying the code as follows:
        if(gl.isGL3core()){
//            System.out.println("GL3 core detected: explicit add #version 130 to shaders");
//            vertexShaderString = "#version 130\n"+vertexShaderString;
//            fragmentShaderString = "#version 130\n"+fragmentShaderString;
            System.out.println("GL3 core detected: explicit add #version 100 to shaders");
            vertexShaderString = "#version 100\n"+vertexShaderString;
            fragmentShaderString = "#version 100\n"+fragmentShaderString;
        }
So the SL compiler I got in the setup mentioned above seems to understand "#version 100" If I learn anything more I'll post it, but the original code should have some regression modification to it to cover this hardware. BTW when the program terminates it still throws "thread death" exceptions.