mirror of https://github.com/axmolengine/axmol.git
Close webgl dedicated test in canvas mode
This commit is contained in:
parent
875a2d83b1
commit
843694cea5
|
@ -977,7 +977,7 @@ var SpriteZVertex = SpriteTestDemo.extend({
|
||||||
this._super(cc.color(255, 0, 0, 80), cc.color(255, 98, 117, 20));
|
this._super(cc.color(255, 0, 0, 80), cc.color(255, 98, 117, 20));
|
||||||
|
|
||||||
|
|
||||||
if ("opengl" in cc.sys.capabilities) {
|
if ("opengl" in cc.sys.capabilities && cc._renderType === cc.game.RENDER_TYPE_WEBGL) {
|
||||||
|
|
||||||
gl.enable(gl.DEPTH_TEST);
|
gl.enable(gl.DEPTH_TEST);
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue