<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi all,<br>
      <br>
      Any feedback on that issue ? <br>
      Is there something I need to change in my code to get OpenGL >
      3 with OpenSceneGraph on OS X ? <br>
      <br>
      Regards,<br>
      <br>
      Florent<br>
      <br>
      <br>
      <br>
      Le 28/04/2016 18:21, Florent Berthaut a écrit :<br>
    </div>
    <blockquote cite="mid:57223889.6010001@hitmuri.net" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      Hi all,<br>
      <br>
      I am trying to port my GNU/Linux project (with OSG 3.4.0) to OS X.
      <br>
      I first installed OSG with Macports. <br>
      <br>
      However the glsl shaders do not compile with anything above
      version 110, whereas i need at least version 3 and when available
      4.2 (for image load store features).<br>
      <br>
      I saw this post, which relates to the same issue (choosing OpenGL
      Core Profile instead of Compatibility profile): <br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://forum.openscenegraph.org/viewtopic.php?t=9992&highlight=osx">http://forum.openscenegraph.org/viewtopic.php?t=9992&highlight=osx</a><br>
      <br>
      It would seem that the issue has been fixed, but looking at the
      source code of OSG 3.4.0, 3.5.0 and 3.5.1, it does not seem that
      the correct calls have been added. <br>
      I tried adding them before recompiling OSG but then i get a bunch
      of errors.<br>
      <br>
      If i change the shaders syntax and use version 110, in order to
      match compatibility profile on OSX, they compile but the
      application then crashes.<br>
      Here is backtrace of the crash :<br>
      <br>
      <small><small><small>0  
            com.apple.driver.AppleIntelHD4000GraphicsGLDriver   
            0x000000010f85dd5c IntelVertexArray::setElemData(unsigned
            int, unsigned int, unsigned short, unsigned int) + 308<br>
            1   com.apple.driver.AppleIntelHD4000GraphicsGLDriver   
            0x000000010f85dc1a
            IntelVertexArray::extractState(GLDVertexArrayDataRec const*,
            unsigned long long) + 170<br>
            2   libGPUSupportMercury.dylib        0x00007fff92e075bb
            gpusLoadCurrentVertexArray + 195<br>
            3   com.apple.driver.AppleIntelHD4000GraphicsGLDriver   
            0x000000010f85b179 Gen7::updateDispatch(GLDContextRec*,
            GLDRenderDispatch*, unsigned int*) + 1393<br>
            4   GLEngine                          0x00007fff8ee5dad4
            gleDoDrawDispatchCore + 533<br>
            5   GLEngine                          0x00007fff8ee00636
            gleSetupAndDrawArraysOrElementsOutOfLine_ListExec + 886<br>
            6   GLEngine                          0x00007fff8ed8aa6a
            gleCallList + 170<br>
            7   libosgUtil.130.dylib              0x000000010779085d
            osgUtil::RenderLeaf::render(osg::RenderInfo&,
            osgUtil::RenderLeaf*)</small></small></small><br>
      <br>
      <br>
      Is there something specific I need to do in my code in order to
      activate the OpenGL Core Profile ?<br>
      <br>
      <br>
      Thanks in advance,<br>
      <br>
      Regards,<br>
      <br>
      Florent<br>
      <br>
      <br>
      <pre class="moz-signature" cols="72">-- 
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://hitmuri.net">http://hitmuri.net</a>
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://hitmuri.net">http://hitmuri.net</a>
</pre>
  </body>
</html>