Menu

#40 Support for OpenGL 3+ core profile

2.0.0
closed
None
1
2016-07-09
2013-05-17
No

Right now GLEW on OpenGL 3+ core profile is totally broken, as it still uses glGetString for extensions; this patch fixes that by constructing a simple open adressing hashset with all of the extensions from glGetStringi and uses that hashset for any further lookups.

1 Attachments

Discussion

  • Nigel Stewart

    Nigel Stewart - 2013-08-23
    • Group: Misc --> 1.10.1
     
  • Nigel Stewart

    Nigel Stewart - 2014-02-20
    • Group: 1.10.1 --> 1.10.2
     
  • Nigel Stewart

    Nigel Stewart - 2014-02-20

    Deferring, for now.

     
  • Joerg

    Joerg - 2014-09-18

    Any update on this issue? In SuperTuxKart we apparently just had the same problem, and need to include a patched version of glew, which doesn't make linux package maintainers happy.

     
  • Edward Rudd

    Edward Rudd - 2014-11-21

    I have a reworked version of this patch that supports GLEW_MX and tested on Win+Mac+Linux. However, the issue exists is that in a core context only extensions not in CORE are provided.. Thus things like ARB_vertex_array_object are not in the extension list as they are CORE in OGL 3.0+.. So GLEW doesn't load those functions at all. So, even with this patch you still need to specify glewExperimental = GL_TRUE;

    To get those functions loading there are a few options.. All of which require parsing the registry/xml/gl.xml to note what functions and extensions are in glcore.
    1) "stuff" the extension hash with the other extensions
    2) simply add those extra functions into the GL_VERSION init method.
    3) adjust the calling of the ext load functions so that they also check if the GL_VERSION_X_X is specified.

     
  • Edward Rudd

    Edward Rudd - 2014-11-21

    I've reworked it so core extensions are now properly loaded. it's a mix of 2 & 3. All my changes based on master are here.

    https://sourceforge.net/u/urkle/glew/ci/core-gl-context/tree/

    Comments are welcome.. I'll be using these changes in an upcoming mac+linux port I'm working on.

     
  • Nigel Stewart

    Nigel Stewart - 2015-02-06
     
  • Anonymous

    Anonymous - 2015-02-06

    I moved my branch (and rebased it) over to github.. https://github.com/urkle/glew/compare/core-gl-context

     
  • Nigel Stewart

    Nigel Stewart - 2016-07-09
    • status: open --> closed
    • assigned_to: Nigel Stewart
    • Group: 1.10.2 --> 2.0.0
     
  • Nigel Stewart

    Nigel Stewart - 2016-07-09

    Fixed in the upcoming GLEW 2.0.0 release. Closing this.
    Thanks for the report.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.