Coder Social home page Coder Social logo

Comments (4)

elmindreda avatar elmindreda commented on May 24, 2024 1

I've done this locally a few times but there's always been something that made it not worthwhile. Most recently, GLX context creation failed with an internal, CGL-related error on MacPorts XQuartz.

It would be a fun thing to add if time permitted getting it working properly, but that likely won't happen for a while. It's a very niche feature.

There's no need to create a separate PR for it.

from glfw.

cblc avatar cblc commented on May 24, 2024

Just one clarification: I don't build for XQuartz and Cocoa in the same executable, and, honestly, I doubt it would be a good idea to choose between XQuartz and Cocoa at runtime, because for example the OpenGL library is different (the Cocoa OpenGL framework vs the libGL.dylib of XQuartz). I just build two different executables to avoid undesired side effects.

from glfw.

archbirdplus avatar archbirdplus commented on May 24, 2024

Only just noticed this issue after making my own PR.

for example the OpenGL library is different (the Cocoa OpenGL framework vs the libGL.dylib of XQuartz)

It looks like XQuartz libGL.dylib just wraps around AppleMetalOpenGLRenderer, according to lsof. I don't think it's very useful.

What is useful is that you can use other OpenGL drivers, such as Mesa LLVMpipe, which don't support Cocoa. That's what we're doing with Cubyz to get some Mac support. It's not hardware accelerated, but allows me to test all the features of the game.

GLX context creation failed

In my case the problem was glad.c not using glXGetProcAddressARB. I only had to change a couple of lines, but I don't know your setup.

from glfw.

archbirdplus avatar archbirdplus commented on May 24, 2024

As for DYLD_FALLBACK_LIBRARY_PATH, I think that since neither XQuartz nor Mesa are installed by default, it should be left to the developers downstream to figure out how to package it. In case you didn't know, you can use -L or -R to build the path into your executable.

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.