Re: Not reproductible GL4bcImpl error with shaders program
Posted by tartox on Nov 29, 2016; 3:48pm
URL: https://forum.jogamp.org/Not-reproductible-GL4bcImpl-error-with-shaders-program-tp4037398p4037487.html
By "renderer" I meant a GLEventListener.
There is only one process, but this portion of code below can be called by different (Java) threads: there is one different offscreen drawing per thread. The errors I observed are always thrown in the init() method of the GLEventListener.
AbstractGraphicsDevice device = GLProfile.getDefaultDevice();
GLDrawableFactory factory = GLDrawableFactory.getDesktopFactory();
GLProfile profile = GLProfile.getGL2GL3(device);
GLCapabilities capabilities = new GLCapabilities(profile);
capabilities.setBackgroundOpaque(false);
capabilities.setOnscreen(false);
capabilities.setFBO(true);
GLOffscreenAutoDrawable drawable = factory.createOffscreenAutoDrawable(device, capabilities, null, width, height);
mRenderer = new MyGLEventListener(); // implementation of GLEventListener
drawable.addGLEventListener(mRenderer);
drawable.display();
Does it look incorrect ?