win32: Fix the check for the 'IN_DESTRUCTION' flag

Commit eae4561929 tried to clean how it checks for the private actor
flags. However the check for the 'IN_DESTRUCTION' flag in the Win32
backend got inverted so it would always clear the current
context. This was causing _cogl_check_driver_valid to fail later and
then the realize would get stuck in a infinite loop.
This commit is contained in:
Neil Roberts 2010-08-24 20:00:04 +01:00
parent 04d55107f3
commit 2e12768e3c

View File

@ -426,7 +426,7 @@ clutter_backend_win32_ensure_context (ClutterBackend *backend,
ClutterStageWindow *impl; ClutterStageWindow *impl;
if (stage == NULL || if (stage == NULL ||
!CLUTTER_ACTOR_IN_DESTRUCTION (stage) || CLUTTER_ACTOR_IN_DESTRUCTION (stage) ||
((impl = _clutter_stage_get_window (stage)) == NULL)) ((impl = _clutter_stage_get_window (stage)) == NULL))
{ {
CLUTTER_NOTE (MULTISTAGE, "Clearing all context"); CLUTTER_NOTE (MULTISTAGE, "Clearing all context");