|
|
@ -393,10 +393,7 @@ static GLFWbool createWindow(_GLFWwindow* window, |
|
|
|
const _GLFWwndconfig* wndconfig, |
|
|
|
const _GLFWwndconfig* wndconfig, |
|
|
|
Visual* visual, int depth) |
|
|
|
Visual* visual, int depth) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Every window needs a colormap
|
|
|
|
// Create a colormap based on the visual used by the current context
|
|
|
|
// Create one based on the visual used by the current context
|
|
|
|
|
|
|
|
// TODO: Decouple this from context creation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window->x11.colormap = XCreateColormap(_glfw.x11.display, |
|
|
|
window->x11.colormap = XCreateColormap(_glfw.x11.display, |
|
|
|
_glfw.x11.root, |
|
|
|
_glfw.x11.root, |
|
|
|
visual, |
|
|
|
visual, |
|
|
|