Login  Register

Re: 2.1.2-rc-20131031

Posted by jmaasing on Oct 31, 2013; 7:29pm
URL: https://forum.jogamp.org/2-1-2-rc-20131031-tp4030438p4030446.html

Cool :-)
I tried the following application:

public static void main(String[] args) {
                final GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GL4));
                caps.setBackgroundOpaque(true);
                caps.setDoubleBuffered(true);
                caps.setDepthBits(16);
                GLWindow glWindow = GLWindow.create(caps);
                glWindow.addGLEventListener(new GLEventListener() {
                        @Override
                        public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
                        }

                        @Override
                        public void init(GLAutoDrawable drawable) {
                                System.out.println("init: " + drawable);
                        }

                        @Override
                        public void dispose(GLAutoDrawable drawable) {
                                System.out.println("dispose: " + drawable);
                        }

                        @Override
                        public void display(GLAutoDrawable drawable) {
                        }
                });
                glWindow.setTitle("Test");
                glWindow.setSize(1024, 768);
                glWindow.setUndecorated(false);
                glWindow.setPointerVisible(true);
                glWindow.setVisible(true);
                glWindow.setFullscreen(false);
                glWindow.setDefaultCloseOperation(WindowClosingProtocol.WindowClosingMode.DISPOSE_ON_CLOSE);

                Animator animator = new Animator(glWindow);
                animator.start();
        }

It works, the NEWT window is opened and the animator runs (same result when using GLProfile.GL3). There is a crash when closing the window. Attached log.
Let me know if you want a bug report in bugzilla.

hs_err_pid1258.log