GithubHelp home page GithubHelp logo

Comments (5)

nlbuescher avatar nlbuescher commented on August 17, 2024 1

This is actually documented behavior of GLFW on macOS (link)

Might be helpful to link to the GLFW FAQ in the README so issue reports like this don't happen again 😅

EDIT: Forgot to mention that I tested the instructions in the FAQ and they successfully create a 4.1 context (although my textures don't seem to load, but that's a different thing entirely because of the API differences)

from kgl.

Dominaezzz avatar Dominaezzz commented on August 17, 2024

kgl-opengl can load functions from 3.2. I've tested this on at least three macs. Are you experiencing any specific issues with function loading?

from kgl.

nlbuescher avatar nlbuescher commented on August 17, 2024

It can load the functions, but the context version returned from glGetString(GL_VERSION) is 2.1 when using GLFW (ie initializing context without specifying version). This may affect shader compilation, although I'm not sure about that. Would need to test.

Relevant stack overflow link: https://stackoverflow.com/a/26982694

from kgl.

nlbuescher avatar nlbuescher commented on August 17, 2024

Update after a bit more research:

  1. The latest version on OpenGL supported by Apple seems to be 4.1 (link), which is better than I thought.
  2. Despite that, if the context is initialized as 2.1, my #version 330 shader does not compile because version 330 is not supported.

Calling glutInitDisplayMode(GLUT_3_2_CORE_PROFILE) from the OpenGL3 platform lib get a glGetString(GL_VERSION) result of 4.1, otherwise the context version is similarly defaulted to 2.1. Not sure what the implications of that are.

from kgl.

Dominaezzz avatar Dominaezzz commented on August 17, 2024

I'll try and also look into this but without a Mac it'll take me a while. It should just mean updating the Loader class for the macosMain sourceSet.

from kgl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.