~ubuntu-branches/ubuntu/trusty/compiz/trusty

« back to all changes in this revision

Viewing changes to plugins/opengl/src/window.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-08-22 06:58:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3352.
  • Revision ID: package-import@ubuntu.com-20130822065807-17nlzez0d30y09so
Tags: upstream-0.9.10+13.10.20130822
ImportĀ upstreamĀ versionĀ 0.9.10+13.10.20130822

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
        }
180
180
        else
181
181
        {
 
182
            bool immediatelyUpdateMatricesAndRegions =
 
183
                priv->textures.size () != textures.size ();
 
184
 
182
185
            priv->textures = textures;
183
186
            priv->needsRebind = false;
 
187
 
 
188
            /* If the number of textures changed, we should immediately
 
189
             * update the matrices and regions so that they are at least
 
190
             * initialized, but we'll queue another update just before
 
191
             * glPaint too in case the window moved or changed size */
 
192
            if (immediatelyUpdateMatricesAndRegions)
 
193
            {
 
194
                priv->setWindowMatrix ();
 
195
                priv->updateWindowRegions ();
 
196
 
 
197
                priv->updateState |= PrivateGLWindow::UpdateMatrix |
 
198
                                     PrivateGLWindow::UpdateRegion;
 
199
            }
184
200
        }
185
201
    }
186
202