Login  Register

Re: GLContext version...

Posted by Matt on Jan 26, 2011; 8:58pm
URL: https://forum.jogamp.org/GLContext-version-tp2335528p2357275.html

Hi Sven,

Thanks for prompt answer.

My code looks like this:

                GLProfile glp = GLProfile.getMaxProgrammable();
                System.err.println("GLProfile getMaxProgrammable(): "+glp);
                 
                GLDrawableFactory factory = GLDrawableFactory.getFactory(GLProfile.get(GLProfile.GL3));
                this.context = factory.createExternalGLContext();
               
                System.err.println(context.toString());

And the two prints look like this:

1)
GLProfile getMaxProgrammable(): GLProfile[GL3/GL3]

2)
com.jogamp.opengl.impl.windows.wgl.WindowsExternalWGLContext [OpenGL 3.0, options 0x22, 3.0 (compatibility profile, any, old) - 3.3.0, handle 0x20000, com.jogamp.opengl.impl.gl4.GL4bcImpl@422ede,
        Drawable: com.jogamp.opengl.impl.windows.wgl.WindowsExternalWGLContext$Drawable[Realized true,
        Factory   com.jogamp.opengl.impl.windows.wgl.WindowsWGLDrawableFactory@112f614,
        handle    0x69012ab4,
        Window    ProxySurface[config WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[DefaultGraphicsDevice[type Windows, connection decon, unitID 0, handle 0x0], idx 0], pfdID 8, ARB-Choosen true,
        requested GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 8, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: true, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 16, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: true, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
        chosen    GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 8, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: true, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 16, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: true, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false]], displayHandle 0x0, surfaceHandle 0x69012ab4, size 0x0]]]



So I do not see a way to programatically get anything higher than 3.0 (compatibility profile, any, old) - 3.3.0 on my machine.
This profile should allow me to use context.getGL().getGL3() method, am I correct or am I missing something?