[osg-users] osgviewerQt integration required

Jan Ciger jan.ciger at gmail.com
Thu Jun 11 08:36:29 PDT 2015

On Thu, Jun 11, 2015 at 4:43 PM, manish Choudhary <osgforum at tevs.eu> wrote:
> Hi,
> I'm using Qt 5.4.2 for Windows 32-bit (VS 2013) and  OpenSceneGraph-3.2.2 stable release  on Window 8.1 platform.
> osgviewerQt example is not working without any modification.
> It is aborts and in the command prompt it showing
> "Warning: detected OpenGL error 'invalid operation' at Before Renderer::compile
> Error: In Texture::Extensions::setupGLExtensions(..) OpenGL version test failed, requires valid graphics context. "
> Why osgviewerQt example not working that seem strange to me.?

Those errors are Qt/OpenGL problems, not OSG issues.

Did you install the Qt version using the Angle emulation, by chance? I
believe that is the default download. Angle supports only OpenGL ES
2.x and translates that to Direct3D calls, so any code requiring
"true" OpenGL will not work with that. The Angle backend is mainly
there to accelerate the Qt scenegraph and is not really a full OpenGL
implementation. Make sure to download the version of Qt with the
native OpenGL support

The versions with "OpenGL" in the name are the correct ones:

If that is OK, then make sure you have the vendor OpenGL drivers for
your graphic card installed (from AMD or Nvidia) - Windows used to
ship with an ancient version of OpenGL, that will not work with OSG.



More information about the osg-users mailing list