Merge pull request #14780 from VisualSJ/v3.10

Close webgl dedicated test in canvas mode
This commit is contained in:
pandamicro 2015-12-22 19:09:17 +08:00
commit 1ac13efacc
3 changed files with 3 additions and 3 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 () {
return new ParallaxParticle();
});

View File

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

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);
//