Failed to execute 'texImage2D' on 'WebGLRenderingContext

"Failed to execute 'texImage2D' on 'WebGLRenderingContext"报这个错误是渲染模式的问题,应该把渲染模式转变为canvas就可以了

    "renderMode"    : 0,
    // "renderMode" sets the renderer type, only useful on web :
    //      0 - Automatically chosen by engine
    //      1 - Forced to use canvas renderer
    //      2 - Forced to use WebGL renderer, but this will be ignored on mobile browsers 
修改project.json里面的renderMode参数

你可能感兴趣的:(cocos2d-js)