Skip to content

Commit

Permalink
Merge pull request cocos#2036 from pandamicro/v1.6
Browse files Browse the repository at this point in the history
Stop bail out iOS UIWebView for webgl
  • Loading branch information
nantas authored Oct 18, 2017
2 parents bfc5398 + 7cdc0a7 commit 90ca357
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cocos2d/core/platform/CCSys.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 90ca357

Please sign in to comment.