Login  Register

Re: refresh problem when stereo requested but not available on Linux 64bit

Posted by blainebell on Apr 06, 2011; 10:27pm
URL: https://forum.jogamp.org/refresh-problem-when-stereo-requested-but-not-available-on-Linux-64bit-tp2784744p2787341.html

Well, I did not figure out this original problem, it is definitely a bug.  However, going through the recent source code, I am able to figure out whether the default device has stereo capabilities *before* the GLCanvas object is created:

        AbstractGraphicsDevice agd = GLProfile.getDefaultDevice();
        GLDrawableFactory drawableFactory = GLDrawableFactory.getFactory(GLProfile.getDefault());
        List availableCapabilities = drawableFactory.getAvailableCapabilities(agd);
        boolean hasStereo = false;
        for (Iterator it=availableCapabilities.iterator();it.hasNext();){
            Object ob = it.next();
            if (ob instanceof GLCapabilities){
                if (((GLCapabilities)ob).getStereo()){
                    hasStereo = true;
                    break;
                }
            }
        }


Unfortunately, this code (specifically GLDrawableFactory.getAvailableCapabilities()) is not available until 1/31/11, which did not make the 2.0 build.  I am going to download rc2 and see if this works.  I would think that this is something that a lot of people are doing?

I am definitely puzzled by the lack of responses towards my posts on this forum.  It could be that I am missing out on documentation that could help me get up to speed.  Forgive me for my ignorance about JoGL.  Any feedback would be much appreciated.

Thank you,

Blaine