[osg-users] OpenGL CoreProfile / error in on OS X

Florent Berthaut florent at hitmuri.net
Fri May 6 01:30:36 PDT 2016


Hi all,

Any feedback on that issue ?
Is there something I need to change in my code to get OpenGL > 3 with 
OpenSceneGraph on OS X ?

Regards,

Florent



Le 28/04/2016 18:21, Florent Berthaut a écrit :
> Hi all,
>
> I am trying to port my GNU/Linux project (with OSG 3.4.0) to OS X.
> I first installed OSG with Macports.
>
> 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).
>
> I saw this post, which relates to the same issue (choosing OpenGL Core 
> Profile instead of Compatibility profile):
> http://forum.openscenegraph.org/viewtopic.php?t=9992&highlight=osx
>
> 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.
> I tried adding them before recompiling OSG but then i get a bunch of 
> errors.
>
> 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.
> Here is backtrace of the crash :
>
> 0 com.apple.driver.AppleIntelHD4000GraphicsGLDriver 0x000000010f85dd5c 
> IntelVertexArray::setElemData(unsigned int, unsigned int, unsigned 
> short, unsigned int) + 308
> 1   com.apple.driver.AppleIntelHD4000GraphicsGLDriver 
> 0x000000010f85dc1a 
> IntelVertexArray::extractState(GLDVertexArrayDataRec const*, unsigned 
> long long) + 170
> 2   libGPUSupportMercury.dylib        0x00007fff92e075bb 
> gpusLoadCurrentVertexArray + 195
> 3   com.apple.driver.AppleIntelHD4000GraphicsGLDriver 
> 0x000000010f85b179 Gen7::updateDispatch(GLDContextRec*, 
> GLDRenderDispatch*, unsigned int*) + 1393
> 4   GLEngine                          0x00007fff8ee5dad4 
> gleDoDrawDispatchCore + 533
> 5   GLEngine                          0x00007fff8ee00636 
> gleSetupAndDrawArraysOrElementsOutOfLine_ListExec + 886
> 6   GLEngine                          0x00007fff8ed8aa6a gleCallList + 170
> 7   libosgUtil.130.dylib              0x000000010779085d 
> osgUtil::RenderLeaf::render(osg::RenderInfo&, osgUtil::RenderLeaf*)
>
>
> Is there something specific I need to do in my code in order to 
> activate the OpenGL Core Profile ?
>
>
> Thanks in advance,
>
> Regards,
>
> Florent
>
>
> -- 
> http://hitmuri.net
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


-- 
http://hitmuri.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160506/527e1785/attachment-0001.htm>


More information about the osg-users mailing list