<div dir="ltr">This is correct.<div><br></div><div>If your application is GL3 context compatible, you can create a GL3 context and then RenderDoc should be happier.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 11, 2019 at 3:08 PM Lionel Lagarde <<a href="mailto:lionel.lagarde@oktal-se.fr">lionel.lagarde@oktal-se.fr</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 bgcolor="#FFFFFF">
<p>Hi, <br>
</p>
<p>Win32 is the name for all the Windows windowing systems. It is
used on all Windows (XP, 7, 10...) and on all targets (32, 64). So
the<br>
function is used.</p>
<p>If I remember correctly, the function is used only for >= GL3
contexts.<br>
</p>
<p><br>
</p>
<p>On 11/04/2019 14:51, Rowley, Marlin R wrote:<br>
</p>
<blockquote type="cite">
<div class="gmail-m_-1434740598323213041WordSection1">
<p class="MsoNormal">We are using Win10-x64.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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></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_-1434740598323213041Picture_x0020_1" src="cid:16a0c8c66424ce8e91" alt="cid:image002.jpg@01D39374.DEC5A2E0" width="156" height="40"><span><u></u><u></u></span></p>
<p class="MsoNormal"><i><span>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>
<p class="MsoNormal"><b>From:</b> osg-users
<a class="gmail-m_-1434740598323213041moz-txt-link-rfc2396E" 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 class="gmail-m_-1434740598323213041moz-txt-link-rfc2396E" 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></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Hi Marlin,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">A great for CreateContextttribs in
the OSG shows:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">$ 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></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">So only X11 and Win32. What platform
are you using?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Robert.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">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></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<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)">----------------------------------------</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">Marlin
Rowley</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">Software
Engineer, Staff</span><u></u><u></u></p>
<p class="MsoNormal"><img style="width: 1.625in; height: 0.4166in;" id="gmail-m_-1434740598323213041gmail-m_-8113421067348896436Picture_x0020_1" src="cid:16a0c8c66424ce8e91" alt="cid:image002.jpg@01D39374.DEC5A2E0" width="156" height="40" border="0"><u></u><u></u></p>
<p class="MsoNormal"><i><span>Missiles and
Fire Control</span></i><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">972-603-1931
(office)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">214-926-0622
(mobile)</span><u></u><u></u></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>
<p class="MsoNormal">_______________________________________________<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></p>
</blockquote>
</div>
</div>
<br>
<fieldset class="gmail-m_-1434740598323213041mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_-1434740598323213041moz-quote-pre">_______________________________________________
osg-users mailing list
<a class="gmail-m_-1434740598323213041moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a>
<a class="gmail-m_-1434740598323213041moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
</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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="text-align:center">Chris 'Xenon' Hanson, omo sanza lettere. Xenon@AlphaPixel.com <a href="http://www.alphapixel.com/" target="_blank">http://www.alphapixel.com/</a></div><div style="text-align:center">Training • Consulting • Contracting</div><div style="text-align:center">3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL</div><div style="text-align:center"><span style="font-size:12.8px">Legal/IP •</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">Forensics •</span><span style="font-size:12.8px"> </span>Imaging <span style="font-size:12.8px">•</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">UAVs </span><span style="font-size:12.8px">• GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android</span></div><div style="text-align:center"><a href="https://twitter.com/alphapixel" target="_blank">@alphapixel</a> <a href="http://facebook.com/alphapixel" target="_blank">facebook.com/alphapixel</a> (775) 623-PIXL [7495]<br></div></div></div></div></div></div>