<div dir="ltr">Let's try that again:<div><a href="https://gist.github.com/gwaldron/a56b0e77e7fa8587b698717d21f9366d">https://gist.github.com/gwaldron/a56b0e77e7fa8587b698717d21f9366d</a> </div><div> <br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Glenn Waldron</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 15, 2019 at 3:33 PM Glenn Waldron <<a href="mailto:gwaldron@gmail.com">gwaldron@gmail.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 dir="ltr">Here's a quick reference for building OSG (and osgEarth) for GL CORE... may be helpful.<div><br clear="all"><div><div dir="ltr" class="gmail-m_-4481188077218706183gmail_signature"><div dir="ltr"><div>Glenn Waldron</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 11, 2019 at 10:49 AM Sebastian Messerschmidt <<a href="mailto:sebastian.messerschmidt@gmx.de" target="_blank">sebastian.messerschmidt@gmx.de</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="DE"><div class="gmail-m_-4481188077218706183gmail-m_-1313397033170806512WordSection1"><p class="MsoNormal"><span>Merlin,<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">As Chris already mentioned the complete application needs to run on core-profile. That means there is no fixed function pipeline and no backward-compatibility features.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">In order to get your application running in core-profile you need to write shaders for everything and IIRC compile OSG with GL3 enabled. I haven’t used OSG in a while now, but I think there is mechanism to decorate the scene graph with shaders automatically. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I started to refactor my project some years ago to fully support core-only scenarios, but I gave up due to a lot features no longer working out-of-the-box.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Can you maybe try to explain what you’re trying to debug? There might be some more options for you. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Cheers<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Sebastian <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><div><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> osg-users <<a href="mailto:osg-users-bounces@lists.openscenegraph.org" target="_blank">osg-users-bounces@lists.openscenegraph.org</a>> <b>On Behalf Of </b>Rowley, Marlin R<br><b>Sent:</b> Donnerstag, 11. April 2019 16:24<br><b>To:</b> OpenSceneGraph Users <<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a>><br><b>Subject:</b> Re: [osg-users] EXTERNAL: Re: EXTERNAL: Re: Where is CreateContextAttribs() being used?<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="EN-US">Sebastian,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">What does “core OpenGL profile” mean with regards to the graphics context?  I’m still not getting it to work.  <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Here is my code structure:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">…<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">osg::</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(43,145,175)">ref_ptr</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><osg::</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(43,145,175)">GraphicsContext</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">::</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(43,145,175)">Traits</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">> traits = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"> osg::</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(43,145,175)">GraphicsContext</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">::</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(43,145,175)">Traits</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            traits</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">-></span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">x = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray">aXPosition</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            traits</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">-></span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">y = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray">aYPosition</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            traits</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">-></span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">width  = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray">aWidth</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            traits</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">-></span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">height = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray">aHeight</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            traits</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">-></span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">stencil = 8;<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            traits</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">-></span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">doubleBuffer     = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue">true</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            traits</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">-></span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">windowDecoration = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue">false</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray">#if</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray">defined</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">(</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(111,0,138)">WIN32</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">)<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            traits</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">-></span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">inheritedWindowData </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">=</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"> osgViewer::</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(43,145,175)">GraphicsWindowWin32</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">::</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(43,145,175)">WindowData</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">( </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray">aWindow</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"> );<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray">#elif</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray">defined</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">(__linux__)<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">           traits->inheritedWindowData = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"> osgViewer::GraphicsWindowX11::WindowData( aWindow );<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray">#endif</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:green">// gl graphics context version and profile mask</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            <b>traits</b></span><b><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">-></span></b><b><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">glContextVersion </span></b><b><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">=</span></b><b><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"> </span></b><b><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(163,21,21)">"3.3"</span></b><b><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></b></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            <b>traits</b></span><b><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">-></span></b><b><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">glContextProfileMask = 0x1;</span></b><b><span lang="EN-US"><u></u><u></u></span></b></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:green">// create the graphics window from the context</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">            osgViewer::</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(43,145,175)">GraphicsWindow</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">* gw = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue">dynamic_cast</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><osgViewer::</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(43,145,175)">GraphicsWindow</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">*>(osg::</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:rgb(43,145,175)">GraphicsContext</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">::createGraphicsContext(traits.get()));<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">…<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:green">// set the main camera to use the window</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">mainCamera</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:teal">-></span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">setGraphicsContext( gw );<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">…<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">I assume here that setting the traits variable with the major/minor version of OpenGL and setting the profile mask to 1 (‘core’??) would be all I need.  But that’s obviously not the case.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black">-M<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><div><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">----------------------------------------<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" 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 lang="EN-US" 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"><span lang="EN-US"><img width="156" height="40" style="width: 1.625in; height: 0.4166in;" id="gmail-m_-4481188077218706183gmail-m_-1313397033170806512_x0000_i1025" src="cid:16a227cef584ce8e91" alt="cid:image002.jpg@01D39374.DEC5A2E0"></span><span lang="EN-US" 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 lang="EN-US" style="font-size:12pt;font-family:"Times New Roman",serif;color:rgb(31,73,125)">Missiles and Fire Control</span></i><span lang="EN-US" style="color:rgb(31,73,125)"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" 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 lang="EN-US" 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 lang="EN-US" 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><span lang="EN-US"><u></u><u></u></span></p></div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><div><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> osg-users <<a href="mailto:osg-users-bounces@lists.openscenegraph.org" target="_blank">osg-users-bounces@lists.openscenegraph.org</a>> <b>On Behalf Of </b><a href="mailto:sebastian.messerschmidt@gmx.de" target="_blank">sebastian.messerschmidt@gmx.de</a><br><b>Sent:</b> Thursday, April 11, 2019 9:01 AM<br><b>To:</b> 'OpenSceneGraph Users' <<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a>><br><b>Subject:</b> EXTERNAL: Re: [osg-users] EXTERNAL: Re: Where is CreateContextAttribs() being used?<u></u><u></u></span></p></div></div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal">Hi Marlin,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="EN-US">In order for RenderDoc (and most tools I’m aware of) you’re application needs to run on core OpenGL profile.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">You might want to look here for some debugging options: <a href="https://www.khronos.org/opengl/wiki/Debugging_Tools" target="_blank">https://www.khronos.org/opengl/wiki/Debugging_Tools</a><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">I personally used Nvidia Nsight for quite a while, as it at least helps with framebuffer debugging etc.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Cheers<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Sebastian <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><div><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> osg-users <<a href="mailto:osg-users-bounces@lists.openscenegraph.org" target="_blank">osg-users-bounces@lists.openscenegraph.org</a>> <b>On Behalf Of </b>Rowley, Marlin R<br><b>Sent:</b> Donnerstag, 11. April 2019 14:52<br><b>To:</b> OpenSceneGraph Users <<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a>><br><b>Subject:</b> Re: [osg-users] EXTERNAL: Re: Where is CreateContextAttribs() being used?<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="EN-US">We are using Win10-x64.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">We are trying to get RenderDoc to be able to see our application so we can do some graphics debugging.  It’s shouting back that the current device context wasn’t created using CreateContextAttrib, so I started looking. So since we are using Win64, doesn’t look like osg will go the WindowWin32 route. Hmm…<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">How are you debugging the GPU?  It’s incredibly difficult trying to solve realtime pipeline problems without the use of a graphics debugger.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">----------------------------------------<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" 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 lang="EN-US" 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"><span lang="EN-US"><img border="0" width="156" height="40" style="width: 1.625in; height: 0.4166in;" id="gmail-m_-4481188077218706183gmail-m_-1313397033170806512Picture_x0020_1" src="cid:16a227cef584ce8e91" alt="cid:image002.jpg@01D39374.DEC5A2E0"></span><span lang="EN-US" 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 lang="EN-US" style="font-size:12pt;font-family:"Times New Roman",serif;color:rgb(31,73,125)">Missiles and Fire Control</span></i><span lang="EN-US" style="color:rgb(31,73,125)"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" 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 lang="EN-US" 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 lang="EN-US" 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><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> osg-users <<a href="mailto:osg-users-bounces@lists.openscenegraph.org" target="_blank">osg-users-bounces@lists.openscenegraph.org</a>> <b>On Behalf Of </b>Robert Osfield<br><b>Sent:</b> Thursday, April 11, 2019 7:16 AM<br><b>To:</b> OpenSceneGraph Users <<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a>><br><b>Subject:</b> EXTERNAL: Re: [osg-users] Where is CreateContextAttribs() being used?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><div><div><div><p class="MsoNormal"><span lang="EN-US">Hi Marlin,<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">A great for CreateContextttribs in the OSG shows:<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">$ 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.",<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">So only X11 and Win32.  What platform are you using?<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">Robert.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div></div></div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><div><div><p class="MsoNormal"><span lang="EN-US">On Thu, 11 Apr 2019 at 00:32, Rowley, Marlin R <<a href="mailto:marlin.r.rowley@lmco.com" target="_blank">marlin.r.rowley@lmco.com</a>> wrote:<u></u><u></u></span></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt"><div><div><p class="MsoNormal"><span lang="EN-US">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></span></p><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">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></span></p><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">-M<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">----------------------------------------</span><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">Marlin Rowley</span><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">Software Engineer, Staff</span><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><img border="0" width="156" height="40" style="width: 1.625in; height: 0.4166in;" id="gmail-m_-4481188077218706183gmail-m_-1313397033170806512gmail-m_-8113421067348896436Picture_x0020_1" src="cid:16a227cef584ce8e91" alt="cid:image002.jpg@01D39374.DEC5A2E0"><u></u><u></u></span></p><p class="MsoNormal"><i><span lang="EN-US" style="font-size:12pt;font-family:"Times New Roman",serif;color:rgb(31,73,125)">Missiles and Fire Control</span></i><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">972-603-1931 (office)</span><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">214-926-0622 (mobile)</span><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" 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><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div></div><p class="MsoNormal"><span lang="EN-US">_______________________________________________<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" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><u></u><u></u></span></p></blockquote></div></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>
</blockquote></div>