Re: GL Version check behavior clarification

Posted by Sven Gothel on
URL: https://forum.jogamp.org/GL-Version-check-behavior-clarification-tp4032479p4032505.html

On 06/29/2014 02:04 AM, bgroenks96 [via jogamp] wrote:
> The driver I'm using on Linux is a Nvidia proprietary driver.
>
> Would you expect that to deliver an ES context?  
Well, they can deliver an ES3 context.

If you request an ES profile, yes.

> Or more specifically, would
> you expect isGLES2() to return true?

Here, w/ NV driver on X11:
 > java com.jogamp.newt.opengl.GLWindow
GL Profile     GLProfile[GL4bc/GL4bc.hw]
GL Version     4.4 (Compat profile, arb, ES2 compat, ES3 compat, FBO, hardware) - 4.4.0 NVIDIA 337.19 [GL 4.4.0, vendor 337.19.0 (NVIDIA 337.19)]

 > java com.jogamp.newt.opengl.GLWindow -es2
GL Profile     GLProfile[GLES2/GLES3.hw]
GL Version     3.1 (ES profile, ES2 compat, ES3 compat, FBO, hardware) - OpenGL ES 3.1 337.19 [GL 3.1.0, vendor 337.19.0 (337.19)]

The item 'ES profile' in the 'GL Version' string indicates
that bit GLContext.CTX_PROFILE_ES is set in GLContext
which is required to return true for GLContext.isES2().

~Sven


signature.asc (894 bytes) Download Attachment