<div dir="ltr"><div dir="ltr"><div>Hi Marlin,</div><div><br></div><div>A great for CreateContextttribs in the OSG shows:</div><div><br></div><div>$ grep -r CreateContextAttribs .<br>Binary file ./lib/libosgViewer.so.3.6.4 matches<br>Binary file ./src/osgViewer/CMakeFiles/osgViewer.dir/GraphicsWindowX11.cpp.o matches<br>./src/osgViewer/GraphicsWindowX11.cpp:        typedef GLXContext (*glXCreateContextAttribsARBProc)(Display*, GLXFBConfig, GLXContext, Bool, const int*);<br>./src/osgViewer/GraphicsWindowX11.cpp:        glXCreateContextAttribsARBProc glXCreateContextAttribsARB = 0;<br>./src/osgViewer/GraphicsWindowX11.cpp:            glXCreateContextAttribsARB = (glXCreateContextAttribsARBProc) glXGetProcAddress((const GLubyte*)"glXCreateContextAttribsARB");<br>./src/osgViewer/GraphicsWindowX11.cpp:        if (glXCreateContextAttribsARB)<br>./src/osgViewer/GraphicsWindowX11.cpp:            _context = glXCreateContextAttribsARB( _display, _fbConfig, sharedContext, True, contextAttributes.data() );<br>./src/osgViewer/GraphicsWindowWin32.cpp:extern HGLRC WINAPI wglCreateContextAttribsARB (HDC, HGLRC, const int *);<br>./src/osgViewer/GraphicsWindowWin32.cpp:            PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB =<br>./src/osgViewer/GraphicsWindowWin32.cpp:                ( PFNWGLCREATECONTEXTATTRIBSARBPROC ) wglGetProcAddress( "wglCreateContextAttribsARB" );<br>./src/osgViewer/GraphicsWindowWin32.cpp:            if( wglCreateContextAttribsARB==0 )<br>./src/osgViewer/GraphicsWindowWin32.cpp:                reportErrorForScreen( "GL3: wglCreateContextAttribsARB not available.",<br>./src/osgViewer/GraphicsWindowWin32.cpp:                context = wglCreateContextAttribsARB( _hdc, 0, attribs );<br>./src/osgViewer/GraphicsWindowWin32.cpp:                    reportErrorForScreen( "GL3: wglCreateContextAttribsARB returned NULL.",<br></div><div><br></div><div>So only X11 and Win32.  What platform are you using?</div><div><br></div><div>Robert.<br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 11 Apr 2019 at 00:32, Rowley, Marlin R <<a href="mailto:marlin.r.rowley@lmco.com">marlin.r.rowley@lmco.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_-8113421067348896436WordSection1">
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.”<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">-M<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(31,73,125)">----------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(31,73,125)">Marlin Rowley<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(31,73,125)">Software Engineer, Staff<u></u><u></u></span></p>
<p class="MsoNormal"><img style="width: 1.625in; height: 0.4166in;" id="gmail-m_-8113421067348896436Picture_x0020_1" src="cid:16a0c529e4c4ce8e91" alt="cid:image002.jpg@01D39374.DEC5A2E0" width="156" height="40"><span style="font-size:10pt;font-family:"Times New Roman",serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span style="font-size:12pt;font-family:"Times New Roman",serif;color:rgb(31,73,125)">Missiles and Fire Control</span></i><span style="color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(31,73,125)">972-603-1931 (office)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(31,73,125)">214-926-0622 (mobile)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif"><a href="mailto:marlin.r.rowley@lmco.com" target="_blank"><span style="color:rgb(5,99,193)">marlin.r.rowley@lmco.com</span></a></span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>