glx: Create a colormap for the dummy window
Otherwise X will fail to create the window and throw a BadMatch error at least on NVidia.
This commit is contained in:
parent
466b00a806
commit
1f70da62a7
@ -538,13 +538,18 @@ clutter_backend_glx_create_context (ClutterBackend *backend,
|
||||
clutter_x11_trap_x_errors ();
|
||||
|
||||
attrs.override_redirect = True;
|
||||
attrs.colormap = XCreateColormap (xdisplay,
|
||||
root_xwin,
|
||||
xvisinfo->visual,
|
||||
AllocNone);
|
||||
|
||||
backend_glx->dummy_xwin = XCreateWindow (xdisplay, root_xwin,
|
||||
-100, -100, 1, 1,
|
||||
0,
|
||||
xvisinfo->depth,
|
||||
CopyFromParent,
|
||||
xvisinfo->visual,
|
||||
CWOverrideRedirect,
|
||||
CWOverrideRedirect | CWColormap,
|
||||
&attrs);
|
||||
|
||||
CLUTTER_NOTE (BACKEND, "Selecting dummy 0x%x for the GLX context",
|
||||
|
Loading…
Reference in New Issue
Block a user