mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Stop bail out iOS UIWebView for webgl
This commit is contained in:
@@ -722,12 +722,6 @@ else {
|
||||
if (cc.create3DContext(document.createElement("CANVAS"))) {
|
||||
_supportWebGL = true;
|
||||
}
|
||||
if (_supportWebGL && sys.os === sys.OS_IOS && sys.osMainVersion === 9) {
|
||||
// Not activating WebGL in iOS 9 UIWebView because it may crash when entering background
|
||||
if (!win.indexedDB) {
|
||||
_supportWebGL = false;
|
||||
}
|
||||
}
|
||||
if (_supportWebGL && sys.os === sys.OS_ANDROID) {
|
||||
var browserVer = parseFloat(sys.browserVersion);
|
||||
switch (sys.browserType) {
|
||||
|
||||
Reference in New Issue
Block a user