mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 22:20:44 +00:00
Fix blend modes in Container rendering.
This commit is contained in:
parent
b963f148a6
commit
bc30f4a9f7
2 changed files with 8 additions and 1 deletions
|
@ -122,7 +122,7 @@ var ContainerWebGLRenderer = function (renderer, container, drawingContext, pare
|
|||
child.setAlpha(childAlphaTopLeft * alpha, childAlphaTopRight * alpha, childAlphaBottomLeft * alpha, childAlphaBottomRight * alpha);
|
||||
|
||||
// Render
|
||||
child.renderWebGL(renderer, child, drawingContext, transformMatrix, container);
|
||||
child.renderWebGL(renderer, child, currentContext, transformMatrix, container);
|
||||
|
||||
// Restore original values
|
||||
|
||||
|
@ -133,6 +133,12 @@ var ContainerWebGLRenderer = function (renderer, container, drawingContext, pare
|
|||
// TODO: Child Mask handling (end)
|
||||
}
|
||||
|
||||
// Release any remaining context.
|
||||
if (currentContext !== drawingContext)
|
||||
{
|
||||
currentContext.release();
|
||||
}
|
||||
|
||||
// TODO: Container PostFX handling
|
||||
};
|
||||
|
||||
|
|
|
@ -104,6 +104,7 @@ var LayerWebGLRenderer = function (renderer, layer, drawingContext)
|
|||
// TODO: Child Mask handling (end)
|
||||
}
|
||||
|
||||
// Release any remaining context.
|
||||
if (currentContext !== drawingContext)
|
||||
{
|
||||
currentContext.release();
|
||||
|
|
Loading…
Reference in a new issue