Re: GLContext version...
Posted by
Sven Gothel on
Jan 26, 2011; 1:10am
URL: https://forum.jogamp.org/GLContext-version-tp2335528p2335632.html
On Wednesday, January 26, 2011 01:47:55 Mat [via jogamp] wrote:
>
> Hi,
>
> I have upted version of JOGL from the one that was a couple of months old to
> the current one.
>
> In CLContext the old isGL3() method looked like this:
>
> public final boolean isGL3() {
> return ctxMajorVersion>=3 && 0!=(ctxOptions &
> (CTX_PROFILE_COMPAT|CTX_PROFILE_CORE));
> }
>
> I am using GL3.3 functionality in my code and my app was running fine.
>
> In current JOGL version the mentioned method looks like this:
>
> public final boolean isGL3() {
> return ( ctxMajorVersion>3 || ctxMajorVersion==3 && ctxMinorVersion>=1
> )
> && 0 != (ctxOptions & CTX_IS_ARB_CREATED)
> && 0 != (ctxOptions & (CTX_PROFILE_COMPAT|CTX_PROFILE_CORE));
> }
>
> and returns false and thus breaks my application.
>
> What's interesting is that while I am positive I am running OpenGL 3.3
> capable nvidia drivers, the GLContext ctxVersionString field has value =
> "3.0 (compatibility profile, any, old) - 3.3.0" meaning the
> ctxMinorVersion=0 (-> false), even though the OpenGL version string states
> "3.3.0".
> The second thing is that my ctxOptions field has value 34 and so fails the
> test for CTX_IS_ARB_CREATED (-> false).
>
Look here ..
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java;h=88caed35718b26a010824074cdd28333758d043c;hb=HEAD#l94when creating the context,
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java;h=88caed35718b26a010824074cdd28333758d043c;hb=HEAD#l140You pass the GLCapabilities instance, which has-a GLProfile.
In your case, just make sure you use IE the max programmable one, or fixed GL3.
~Sven
--
health & wealth
mailto:
[hidden email] ;
http://jausoft.comland : +49 (471) 4707742 ; cell: +49 (151) 28145941
Timezone CET: PST+9, EST+6, UTC+1