We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 997d2d7 commit ff63de5Copy full SHA for ff63de5
CCBoot.js
@@ -1665,8 +1665,13 @@ cc._initSys = function (config, CONFIG_KEY) {
1665
1666
if(userRenderMode === 2)
1667
try{
1668
- cc.create3DContext(tmpCanvas, {'stencil': true, 'preserveDrawingBuffer': true });
1669
- cc._renderType = cc._RENDER_TYPE_WEBGL;
+ var context = cc.create3DContext(tmpCanvas, {'stencil': true, 'preserveDrawingBuffer': true });
+ if(context){
1670
+ cc._renderType = cc._RENDER_TYPE_WEBGL;
1671
+ }else{
1672
+ cc.log("Browsers doesn‘t support WebGL");
1673
+ userRenderMode = 1;
1674
+ }
1675
}catch(e){
1676
cc.log("Browsers doesn‘t support WebGL");
1677
userRenderMode = 1;
0 commit comments