mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 00:59:48 +00:00
Removed implicit glfwMakeCurrentContext.
Implicitly making the context current makes sense in a single-window API but less sense in a multi-window one.
This commit is contained in:
@@ -214,6 +214,8 @@ int main(int argc, char** argv)
|
||||
if (!window)
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
glfwMakeContextCurrent(window);
|
||||
|
||||
// Report GLFW version
|
||||
|
||||
glfwGetVersion(&major, &minor, &revision);
|
||||
|
||||
Reference in New Issue
Block a user