Set the SYNC_MATRICES flag when a stage is first realized
authorNeil Roberts <neil@linux.intel.com>
Wed, 21 Jan 2009 12:47:29 +0000 (12:47 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 26 Jan 2009 10:58:40 +0000 (10:58 +0000)
commit54f4ed775c72387acd6959f5c68453846a90dd68
treea560f489f4c55dce46f466734c4010ff46fc305f
parentcdb360107b08302597d538f0c35c4a55114f2f54
Set the SYNC_MATRICES flag when a stage is first realized

The stage will usually be painted before the first ConfigureNotify
arrives so we need to set the SYNC_MATRICES flag to ensure that the
viewport will be correct for that paint. Unfortunately this means that
the viewport will be set again once the ConfigureNotify is received
but compared to rendering an initial invalid scene I think it is the
lesser of two evils.
clutter/clutter-stage.c