Skip to content

Commit e913f2c

Browse files
author
David Gillen
committed
Fix issue with cacheControlled surfaces
1 parent dd0010a commit e913f2c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/easeljs/display/StageGL.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,15 +1429,14 @@ this.createjs = this.createjs||{};
14291429
this._drawContent(container, true);
14301430

14311431
// re-align buffers with fake filter passes to solve certain error cases
1432-
if (manager._cacheCanvas !== ((manager._filterCount%2) ? this._batchTextureConcat : this._batchTextureOutput)) {
1433-
// pre filter pass to align output, may of become misaligned due to composite operations
1434-
filtersLeft++;
1435-
}
14361432
if (this.isCacheControlled) {
14371433
// post filter pass to place content into output buffer
14381434
//TODO: add in directDraw support for cache controlled StageGLs
14391435
filterCount++;
14401436
filtersLeft++;
1437+
} else if (manager._cacheCanvas !== ((manager._filterCount%2) ? this._batchTextureConcat : this._batchTextureOutput)) {
1438+
// pre filter pass to align output, may of become misaligned due to composite operations
1439+
filtersLeft++;
14411440
}
14421441

14431442
while (filtersLeft) { //warning: pay attention to where filtersLeft is modified, this is a micro-optimization

0 commit comments

Comments
 (0)