mirror of https://github.com/axmolengine/axmol.git
Merge pull request #14099 from pandamicro/v3
[ci skip]Sync with CCBoot for web
This commit is contained in:
commit
8b0a6a6c29
File diff suppressed because it is too large
Load Diff
|
@ -22,8 +22,19 @@
|
|||
|
||||
// Prepare JSB environment
|
||||
|
||||
var cc = cc || {};
|
||||
var window = window || this;
|
||||
var cc = cc || {};
|
||||
/**
|
||||
* @namespace jsb
|
||||
* @name jsb
|
||||
*/
|
||||
var jsb = jsb || {};
|
||||
|
||||
/**
|
||||
* The element contains the game canvas
|
||||
* @type {HTMLDivElement}
|
||||
*/
|
||||
cc.container = null;
|
||||
|
||||
/**
|
||||
* Iterate over an object or an array, executing a function for each matched element.
|
||||
|
|
|
@ -138,7 +138,7 @@ var TestController = cc.LayerGradient.extend({
|
|||
|
||||
// enable disable
|
||||
if ( !cc.sys.isNative) {
|
||||
if( 'opengl' in cc.sys.capabilities ){
|
||||
if( cc._renderType !== cc.game.RENDER_TYPE_CANVAS ){
|
||||
menuItem.enabled = (testNames[i].platforms & PLATFORM_HTML5) | (testNames[i].platforms & PLATFORM_HTML5_WEBGL);
|
||||
}else{
|
||||
menuItem.setEnabled( testNames[i].platforms & PLATFORM_HTML5 );
|
||||
|
|
2
web
2
web
|
@ -1 +1 @@
|
|||
Subproject commit 8085df89a73b18a08a7747064a894c9a8dc803c1
|
||||
Subproject commit a9f493ae53d20945d8796660363da4e060a68ee2
|
Loading…
Reference in New Issue