Hi Marlin, A great for CreateContextttribs in the OSG shows:
$ grep -r CreateContextAttribs . Binary file ./lib/libosgViewer.so.3.6.4 matches Binary file ./src/osgViewer/CMakeFiles/osgViewer.dir/GraphicsWindowX11.cpp.o matches ./src/osgViewer/GraphicsWindowX11.cpp: typedef GLXContext (*glXCreateContextAttribsARBProc)(Display*, GLXFBConfig, GLXContext, Bool, const int*); ./src/osgViewer/GraphicsWindowX11.cpp: glXCreateContextAttribsARBProc glXCreateContextAttribsARB = 0; ./src/osgViewer/GraphicsWindowX11.cpp: glXCreateContextAttribsARB = (glXCreateContextAttribsARBProc) glXGetProcAddress((const GLubyte*)"glXCreateContextAttribsARB"); ./src/osgViewer/GraphicsWindowX11.cpp: if (glXCreateContextAttribsARB) ./src/osgViewer/GraphicsWindowX11.cpp: _context = glXCreateContextAttribsARB( _display, _fbConfig, sharedContext, True, contextAttributes.data() ); ./src/osgViewer/GraphicsWindowWin32.cpp:extern HGLRC WINAPI wglCreateContextAttribsARB (HDC, HGLRC, const int *); ./src/osgViewer/GraphicsWindowWin32.cpp: PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB = ./src/osgViewer/GraphicsWindowWin32.cpp: ( PFNWGLCREATECONTEXTATTRIBSARBPROC ) wglGetProcAddress( "wglCreateContextAttribsARB" ); ./src/osgViewer/GraphicsWindowWin32.cpp: if( wglCreateContextAttribsARB==0 ) ./src/osgViewer/GraphicsWindowWin32.cpp: reportErrorForScreen( "GL3: wglCreateContextAttribsARB not available.", ./src/osgViewer/GraphicsWindowWin32.cpp: context = wglCreateContextAttribsARB( _hdc, 0, attribs ); ./src/osgViewer/GraphicsWindowWin32.cpp: reportErrorForScreen( "GL3: wglCreateContextAttribsARB returned NULL.", So only X11 and Win32. What platform are you using? Robert. On Thu, 11 Apr 2019 at 00:32, Rowley, Marlin R <[email protected]> wrote: > We are trying to run the graphics debugger called ‘RenderDoc’. It’s > spitting out an error message after we create a window and it’s device > context. I’ve been looking through the osg code to find a function called > CreateContextAttribs(). I can’t seem to locate it. My idea is to override > where it’s used or refactor something into the code where we can call the > function ourselves. > > > > In the meantime, I’m setting the traits->glContextVersion = “3.3” in our > graphics application but RenderDoc is still shouting “Context not created > via CreateContextAttribs. Capturing disabled.” > > > > -M > > > > ---------------------------------------- > > Marlin Rowley > > Software Engineer, Staff > > [image: cid:[email protected]] > > *Missiles and Fire Control* > > 972-603-1931 (office) > > 214-926-0622 (mobile) > > [email protected] > > > _______________________________________________ > 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

