Skip to content

Commit

Permalink
Feature #5941: Desactivate WebGL for iOS version < 8
Browse files Browse the repository at this point in the history
  • Loading branch information
pandamicro committed Oct 1, 2014
1 parent 24a2b4f commit 1c8d619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CCBoot.js
Expand Up @@ -1541,7 +1541,7 @@ cc._initSys = function (config, CONFIG_KEY) {
var renderType = cc._RENDER_TYPE_WEBGL;
var tempCanvas = cc.newElement("Canvas");
cc._supportRender = true;
var notSupportGL = browserSupportWebGL.indexOf(sys.browserType) == -1 || osSupportWebGL.indexOf(sys.os) == -1;
var notSupportGL = !window.WebGLRenderingContext || browserSupportWebGL.indexOf(sys.browserType) == -1 || osSupportWebGL.indexOf(sys.os) == -1;
if (userRenderMode === 1 || (userRenderMode === 0 && notSupportGL) || (location.origin == "file://")) {
renderType = cc._RENDER_TYPE_CANVAS;
}
Expand Down

0 comments on commit 1c8d619

Please sign in to comment.