GLSL stucks Java application
Posted by Haroogan on Feb 28, 2011; 11:40pm
URL: https://forum.jogamp.org/GLSL-stucks-Java-application-tp2599554.html
Hey there, I've recently created a few shaders - it is the first time I work with shaders in JOGL. When I use shaders in my JOGL application (I'm sitting on Eclipse btw) and run it - everything is OK - so shaders work fine. The problem starts when I, for instance, close the window by X button: the java application is stuck in processes, in other words it never terminates as usual. Therefore I have to go to task manager and kill this process forcefully - this is annoying and, in any case, does not work as intended. When I do not use shaders - everything is fine - closing by X button kills the process. I have already tried to use "Hello, World" VS and FS (to be sure that VS and FS are perfectly correct) and the result is the same - again and again the application is stuck.
Is this a well-known issue, or am I doing something wrong? For instance, I don't do glDetachShader, glDeleteShader and glDeleteProgram in the end of application, since there is no "shutdown" function on GLCanvas (why btw?). So, if it is strongly recommended to execute glDetachShader, glDeleteShader and glDeleteProgram functions before closing the application - tell me where it is better to execute them. However, until now, I suppose that it is not that necessary, that's why I'm not doing it and therefore I don't understand why such application stuck happens...