Moved to use X11 context manager.

This commit is contained in:
Camilla Berglund
2013-04-15 02:16:51 +02:00
parent 32273c5d96
commit 26756b9ae1
3 changed files with 14 additions and 4 deletions
+1
View File
@@ -434,6 +434,7 @@ static GLboolean initDisplay(void)
_glfw.x11.screen = DefaultScreen(_glfw.x11.display);
_glfw.x11.root = RootWindow(_glfw.x11.display, _glfw.x11.screen);
_glfw.x11.context = XUniqueContext();
// Find or create window manager atoms
_glfw.x11.WM_STATE = XInternAtom(_glfw.x11.display, "WM_STATE", False);