mirror of
https://github.com/brl/mutter.git
synced 2025-04-01 08:03:46 +00:00
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 ();
|
clutter_x11_trap_x_errors ();
|
||||||
|
|
||||||
attrs.override_redirect = True;
|
attrs.override_redirect = True;
|
||||||
|
attrs.colormap = XCreateColormap (xdisplay,
|
||||||
|
root_xwin,
|
||||||
|
xvisinfo->visual,
|
||||||
|
AllocNone);
|
||||||
|
|
||||||
backend_glx->dummy_xwin = XCreateWindow (xdisplay, root_xwin,
|
backend_glx->dummy_xwin = XCreateWindow (xdisplay, root_xwin,
|
||||||
-100, -100, 1, 1,
|
-100, -100, 1, 1,
|
||||||
0,
|
0,
|
||||||
xvisinfo->depth,
|
xvisinfo->depth,
|
||||||
CopyFromParent,
|
CopyFromParent,
|
||||||
xvisinfo->visual,
|
xvisinfo->visual,
|
||||||
CWOverrideRedirect,
|
CWOverrideRedirect | CWColormap,
|
||||||
&attrs);
|
&attrs);
|
||||||
|
|
||||||
CLUTTER_NOTE (BACKEND, "Selecting dummy 0x%x for the GLX context",
|
CLUTTER_NOTE (BACKEND, "Selecting dummy 0x%x for the GLX context",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user