[backend] Update the viewport when updating the GL context
authorEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 20 Feb 2009 15:39:32 +0000 (15:39 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 20 Feb 2009 16:40:57 +0000 (16:40 +0000)
commitf4df307ddd6e0c977c57aaba1b1e4adfa143c1b0
treed6e1116576aa96a23f4bbdd750f4faa209da9166
parentfa996734cff073a8acb7adb1d758059be25cb025
[backend] Update the viewport when updating the GL context

Bug 1442 - multistage, same-window resize events invalidate stage

When ensuring that the GL context is attached to the correct
ClutterStage we need to set the SYNC_MATRICES flag on the stage
itself. This is needed in case the size of the new stage does
not match the size of the old -- thus requiring a call to
glViewport() when the paint cycle starts.
clutter/clutter-backend.c