Daniel,

You can use a custom realize operation to do OpenGL checks when the
viewer creates the graphics windows for the first time.  The osgvolume
example uses this approach to check 3D texture sizes, you could eaily
add in the version check here.

Robert.

On 5 August 2016 at 16:32, Jannik Heller <[email protected]> wrote:
> Hi,
>
> Unfortunately OpenGL doesn't support getting the supported version without 
> creating a context first.
>
> https://gamedev.stackexchange.com/questions/28451/how-do-i-properly-check-if-a-particular-opengl-version-is-available
>
> https://stackoverflow.com/questions/12184506/why-does-glgetstringgl-version-return-null-zero-instead-of-the-opengl-versio
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68294#68294
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to