mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
Fixed refresh of debug context attribute.
This commit is contained in:
+1
-1
@@ -232,7 +232,7 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
|
||||
glfwMakeContextCurrent((GLFWwindow*) window);
|
||||
|
||||
// Retrieve the actual (as opposed to requested) context attributes
|
||||
if (!_glfwRefreshContextAttribs())
|
||||
if (!_glfwRefreshContextAttribs(&wndconfig))
|
||||
{
|
||||
glfwDestroyWindow((GLFWwindow*) window);
|
||||
glfwMakeContextCurrent((GLFWwindow*) previous);
|
||||
|
||||
Reference in New Issue
Block a user