<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" 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"
      cite="mid:8cc07c192a654efdabe5b3df6b617219@lmco.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">We are using Win10-x64.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></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…<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">----------------------------------------<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Marlin
            Rowley<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Software
            Engineer, Staff<o:p></o:p></span></p>
        <p class="MsoNormal"><img style="width:1.625in;height:.4166in"
            id="Picture_x0020_1"
            src="cid:part1.D3B333C2.3E7A2C8F@oktal-se.fr"
            alt="cid:image002.jpg@01D39374.DEC5A2E0" class=""
            width="156" height="40"><span
            style="font-size:10.0pt;font-family:"Times New
            Roman",serif;color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><i><span
              style="font-size:12.0pt;font-family:"Times New
              Roman",serif;color:#1F497D">Missiles and Fire Control</span></i><span
            style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">972-603-1931
            (office)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">214-926-0622
            (mobile)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"><a
              href="mailto:marlin.r.rowley@lmco.com"
              moz-do-not-send="true"><span style="color:#0563C1">marlin.r.rowley@lmco.com</span></a></span><o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><b>From:</b> osg-users
          <a class="moz-txt-link-rfc2396E" href="mailto:osg-users-bounces@lists.openscenegraph.org"><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="moz-txt-link-rfc2396E" href="mailto:osg-users@lists.openscenegraph.org"><osg-users@lists.openscenegraph.org></a><br>
          <b>Subject:</b> EXTERNAL: Re: [osg-users] Where is
          CreateContextAttribs() being used?<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <div>
            <div>
              <p class="MsoNormal">Hi Marlin,<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
            <div>
              <p class="MsoNormal">A great for CreateContextttribs in
                the OSG shows:<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></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.",<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
            <div>
              <p class="MsoNormal">So only X11 and Win32.  What platform
                are you using?<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Robert.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></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"
                moz-do-not-send="true">marlin.r.rowley@lmco.com</a>>
              wrote:<o:p></o:p></p>
          </div>
          <blockquote style="border:none;border-left:solid #CCCCCC
            1.0pt;padding:0in 0in 0in
            6.0pt;margin-left:4.8pt;margin-right:0in">
            <div>
              <div>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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.<o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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.”<o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">-M<o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">----------------------------------------</span><o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Marlin
                    Rowley</span><o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Software
                    Engineer, Staff</span><o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><img
                    style="width:1.625in;height:.4166in"
                    id="gmail-m_-8113421067348896436Picture_x0020_1"
                    src="cid:part1.D3B333C2.3E7A2C8F@oktal-se.fr"
                    alt="cid:image002.jpg@01D39374.DEC5A2E0" class=""
                    width="156" height="40" border="0"><o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><span
                      style="font-size:12.0pt;font-family:"Times
                      New Roman",serif;color:#1F497D">Missiles and
                      Fire Control</span></i><o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">972-603-1931
                    (office)</span><o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">214-926-0622
                    (mobile)</span><o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"><a
                      href="mailto:marlin.r.rowley@lmco.com"
                      target="_blank" moz-do-not-send="true"><span
                        style="color:#0563C1">marlin.r.rowley@lmco.com</span></a></span><o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
              </div>
            </div>
            <p class="MsoNormal">_______________________________________________<br>
              osg-users mailing list<br>
              <a href="mailto:osg-users@lists.openscenegraph.org"
                target="_blank" moz-do-not-send="true">osg-users@lists.openscenegraph.org</a><br>
              <a
href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org"
                target="_blank" moz-do-not-send="true">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><o:p></o:p></p>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
    </blockquote>
  </body>
</html>