DCPUTeam / DCPUToolchain

[ARCHIVED] The code repository for the DCPU-16 Toolchain.
http://dcputoolcha.in/
MIT License
96 stars 14 forks source link

glfw (bundled library) should be updated #203

Open Ape opened 11 years ago

Ape commented 11 years ago

There was an upstream issue on glfw regarding mesa drivers. Any glfw application would just refuse opening any windows.

This issue has been now fixed with the latest upstream version of glfw [1]. I propose that we update the bundled library to match this commit or any later.

[1] https://github.com/elmindreda/glfw/commit/9e9457767f3d1c2dd0a5b85191c36f1648f7c0bb

Ape commented 11 years ago

There has been some minor changes to glfw API since the currently bundled versions, but the needed updates on DCPUToolchain code are just about 5 lines like this:

glfwSetWindowCloseCallback(&vm_hw_glfw_close_window_callback); to glfwSetWindowCloseCallback(context, &vm_hw_glfw_close_window_callback);

jdiez17 commented 11 years ago

I'll pull the latest snapshot from @elmindreda's repo and update the API calls, thanks for the tip.