* clutter/glx/clutter-stage-glx.c: for extra sanity, set
stage_x11->xvisinfo = NULL after XFree. Makes using the root window as foreign window possible.
This commit is contained in:
parent
3def17d9d2
commit
ace69e71b3
@ -1,3 +1,9 @@
|
||||
2007-12-03 Øyvind Kolås <pippin@o-hand.com>
|
||||
|
||||
* clutter/glx/clutter-stage-glx.c: for extra sanity, set
|
||||
stage_x11->xvisinfo = NULL after XFree. Makes using the root window
|
||||
as foreign window possible.
|
||||
|
||||
2007-11-30 Øyvind Kolås <pippin@o-hand.com>
|
||||
|
||||
* clutter/clutter-timeline.c: (clutter_timeline_get_delta): return the
|
||||
|
@ -126,7 +126,9 @@ clutter_stage_glx_realize (ClutterActor *actor)
|
||||
|
||||
if (stage_x11->xvisinfo)
|
||||
XFree (stage_x11->xvisinfo);
|
||||
stage_x11->xvisinfo = NULL;
|
||||
|
||||
/* The following check seems strange */
|
||||
if (stage_x11->xvisinfo == None)
|
||||
stage_x11->xvisinfo = glXChooseVisual (stage_x11->xdpy,
|
||||
stage_x11->xscreen,
|
||||
@ -218,6 +220,7 @@ clutter_stage_glx_realize (ClutterActor *actor)
|
||||
|
||||
if (stage_x11->xvisinfo )
|
||||
XFree (stage_x11->xvisinfo);
|
||||
stage_x11->xvisinfo = NULL;
|
||||
|
||||
CLUTTER_NOTE (GL, "glXChooseVisual");
|
||||
stage_x11->xvisinfo = glXChooseVisual (stage_x11->xdpy,
|
||||
|
Loading…
Reference in New Issue
Block a user