Close webgl dedicated test in canvas mode

This commit is contained in:
VisualSj 2015-12-22 18:36:48 +08:00
parent 727480e44f
commit 875a2d83b1
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ var particleSceneArr = [
} }
]; ];
if( 'opengl' in cc.sys.capabilities ){ if( 'opengl' in cc.sys.capabilities && cc._renderType === cc.game.RENDER_TYPE_WEBGL){
particleSceneArr.push( function () { particleSceneArr.push( function () {
return new ParallaxParticle(); return new ParallaxParticle();
}); });

View File

@ -673,7 +673,7 @@ var arrayOfRenderTextureTest = [
Issue1464 Issue1464
]; ];
if(('opengl' in cc.sys.capabilities) && (!cc.sys.isNative) ){ if(('opengl' in cc.sys.capabilities) && cc._renderType === cc.game.RENDER_TYPE_WEBGL && (!cc.sys.isNative) ){
arrayOfRenderTextureTest.push(RenderTextureIssue937); arrayOfRenderTextureTest.push(RenderTextureIssue937);
arrayOfRenderTextureTest.push(RenderTextureZbuffer); arrayOfRenderTextureTest.push(RenderTextureZbuffer);
arrayOfRenderTextureTest.push(RenderTextureTestDepthStencil); arrayOfRenderTextureTest.push(RenderTextureTestDepthStencil);