Giter Site home page Giter Site logo

Comments (5)

tapir avatar tapir commented on June 13, 2024

You're supposed to make your gl.* calls from the same goroutine that you created your OpenGL context.

from glfw.

tapir avatar tapir commented on June 13, 2024

Also at some point goroutines were not allowed in init(). There might be a bug special to macos in this case.

from glfw.

UserAB1236872 avatar UserAB1236872 commented on June 13, 2024

All my gl.* calls are from the same goroutine the context is created on.

from glfw.

tapir avatar tapir commented on June 13, 2024

Yeah sorry just quickly looked at the code didn't see that.
But in any case I think this is a Go bug not related to GLFW. Do you have special reason why you want render() goroutine to be fired from init() instead of main()?

from glfw.

UserAB1236872 avatar UserAB1236872 commented on June 13, 2024

Yeah, I was using init as a way to, well, init all my modules in a particular order. It's not a big deal. I just used init to instead push a start func onto a queue and then called all the start funcs from main.

You're right, it's probably some weird issue with the runtime.

from glfw.

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.