mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Fix WebGL parameters on context restore.
This commit is contained in:
parent
b851e591c7
commit
3c7bee4e08
1 changed files with 2 additions and 2 deletions
|
@ -814,9 +814,9 @@ var WebGLRenderer = new Class({
|
|||
// Camera mask is set during preRenderCamera.
|
||||
|
||||
// Restore GL flags.
|
||||
gl.disable(gl.BLEND);
|
||||
gl.enable(gl.BLEND);
|
||||
gl.disable(gl.DEPTH_TEST);
|
||||
gl.enable(gl.CULL_FACE);
|
||||
gl.disable(gl.CULL_FACE);
|
||||
|
||||
// Re-enable compressed texture formats.
|
||||
_this.compression = _this.getCompressedTextures();
|
||||
|
|
Loading…
Add table
Reference in a new issue