[osg-users] Having problems running the osgViewerWX example (GLExtensions returning as null)

Doug Haseltine doug.haseltine at lmco.com
Fri Feb 3 12:13:43 PST 2017


You could declare something like

wxGLContext*  m_context;

...in your header and then do:

m_context = new wxGLContext(_canvas);
_canvas->SetCurrent(*m_context);

instead of just SetCurrent();

which for me got it to at least start showing OSG content inside of wxWidget windows (but on Linux).

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70101#70101








More information about the osg-users mailing list