Login  Register

Re: Jogl Using Wrong (Generic) Graphics Adapter

Posted by Tobi Delbruck on Dec 11, 2014; 10:18pm
URL: https://forum.jogamp.org/Jogl-Using-Wrong-Generic-Graphics-Adapter-tp4033216p4033747.html

I now isolated the cause down to the call below

            GraphicsDevice gd=gs[0];
            GraphicsConfiguration[] gc=gd.getConfigurations();
            if(gc!=null&&gc.length>0) {
                if(gc.length>1){
//                    log.info("There are "+gc.length+" GraphicsConfiguration's found; using first one which is "+gc[0].toString());
                }
                Insets insets=Toolkit.getDefaultToolkit().getScreenInsets(gc[0]);
                lowerInset=insets.bottom;
            }

If I remove this determination of the lowerInset (the Taskbar, on Windows 7) the problem goes away; no more GDI rendering. Commenting out this call for lowerInset also solves the problem in jAER itself.

Not sure if this helps. I can copy this over to the bug report or else wait until I can make a test case.