Which version of cocos2d-html support webgl on Android?

I have a android phone run on android5.0, and I run html5test, it support webgl on html5test. But when I run my code. it still use canvas render. my cocos2d-html version is cocos2d-js-v3.8

Is there anybody can answer me?

for other persons looking for an answer to this: looks like by default android devices had webgl disabled. In my case it works by removing ANDROID from the shield array: frameworks/cocos2d-html5/CCBoot.js:1915

before:  shieldOs = [cc.sys.OS_ANDROID],
after: shieldOs = [],

references:

1 Like