Close webgl dedicated test in canvas mode

This commit is contained in:
VisualSj 2015-12-22 18:46:30 +08:00
parent 875a2d83b1
commit 843694cea5
1 changed files with 1 additions and 1 deletions

View File

@ -977,7 +977,7 @@ var SpriteZVertex = SpriteTestDemo.extend({
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);
//