-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running on Mac #3
Comments
I'm working on that right now, actually. You can view my frustrations in second half of the latest stream. I should have it working by the next stream though. |
This was still crashing for me on startup. It was asserting when getting the vecSunLight uniform location. It turns out that glfwInit() will change the current directory. That happens only on OS X (see http://www.glfw.org/docs/latest/group__init.html). This was breaking the shader loading: Renderer::LoadShaders() would find no shader (this could use some error checking). The solution is to call getcwd() before glfwInit() and chdir back to the old dir. Once I made that change, the program seems to be working. |
Could you submit a patch please? It all works fine for me. |
Here are my changes. I assume you'll want to move this in some platform specific file Update: fixed formatting, referenced pull request #6
|
Github seems to have stripped a bunch of stuff out. If you're not comfortable submitting a pull request, do you want to just send the file to my email? [email protected] |
I'm able to compile and run "master" like so:
make -f Makefile.osx
run_mfgd_osx
and I get:
6 iterations
3.148438
However, if I comment out this in main.c:
//return 0;
so it creates a game window, I get this:
./run_mfgd_osx: line 5: 23104 Segmentation fault: 11 ../mfgd
Is the game window runnable in on OS X?
The text was updated successfully, but these errors were encountered: