~3v1n0/compiz/resize-lowgfx-fixes

« back to all changes in this revision

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

  • Committer: BryanFRitt
  • Date: 2016-07-14 15:43:48 UTC
  • mfrom: (4067 compiz)
  • mto: This revision was merged to the branch mainline in revision 4075.
  • Revision ID: bryanfritt@hotmail.com-20160714154348-sit21cmf3dzpfkpn
ran `bzr merge lp:compiz`

Show diffs side-by-side

added added

removed removed

Lines of Context:
375
375
}
376
376
 
377
377
void
 
378
GLWindow::clearShaders ()
 
379
{
 
380
    for (std::list<const GLShaderData*>::const_iterator it = priv->shaders.begin();
 
381
         it != priv->shaders.end();
 
382
         ++it)
 
383
    {
 
384
        if ((*it)->isCached != true)
 
385
        {
 
386
            delete *it;
 
387
        }
 
388
    }
 
389
    priv->shaders.clear ();
 
390
}
 
391
 
 
392
void
378
393
PrivateGLWindow::updateFrameRegion (CompRegion &region)
379
394
{
380
395
    window->updateFrameRegion (region);