creator版本2.0.8
报错平台android
报错几率:必现
用cc.loader.load加载显示,web平台OK,android平台OpenGL报错,报错信息:
03-04 16:10:31.780 13828-13873/org.cocos2d.testOnlineImg E/jswrapper: [ERROR] (C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp, 2278): glTexSubImage2D((GLenum)target , (GLint)level , (GLint)xoffset , (GLint)yoffset , (GLsizei)width , (GLsizei)height , (GLenum)format , (GLenum)type , (GLvoid*)pixels); GL error 0x502: GL_INVALID_OPERATION
03-04 16:10:31.780 13828-13873/org.cocos2d.testOnlineImg E/jswrapper: [ERROR] Failed to invoke JSB_glTexSubImage2D, location: C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp:2282
03-04 16:10:31.789 13828-13873/org.cocos2d.testOnlineImg E/jswrapper: [ERROR] (C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp, 2278): glTexSubImage2D((GLenum)target , (GLint)level , (GLint)xoffset , (GLint)yoffset , (GLsizei)width , (GLsizei)height , (GLenum)format , (GLenum)type , (GLvoid*)pixels); GL error 0x502: GL_INVALID_OPERATION
03-04 16:10:31.789 13828-13873/org.cocos2d.testOnlineImg E/jswrapper: [ERROR] Failed to invoke JSB_glTexSubImage2D, location: C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp:2282
03-04 16:10:31.796 13828-13873/org.cocos2d.testOnlineImg E/jswrapper: [ERROR] (C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp, 2278): glTexSubImage2D((GLenum)target , (GLint)level , (GLint)xoffset , (GLint)yoffset , (GLsizei)width , (GLsizei)height , (GLenum)format , (GLenum)type , (GLvoid*)pixels); GL error 0x502: GL_INVALID_OPERATION
03-04 16:10:31.796 13828-13873/org.cocos2d.testOnlineImg E/jswrapper: [ERROR] Failed to invoke JSB_glTexSubImage2D, location: C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp:2282
03-04 16:10:31.802 13828-13873/org.cocos2d.testOnlineImg E/jswrapper: [ERROR] (C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp, 2278): glTexSubImage2D((GLenum)target , (GLint)level , (GLint)xoffset , (GLint)yoffset , (GLsizei)width , (GLsizei)height , (GLenum)format , (GLenum)type , (GLvoid*)pixels); GL error 0x502: GL_INVALID_OPERATION
03-04 16:10:31.802 13828-13873/org.cocos2d.testOnlineImg E/jswrapper: [ERROR] Failed to invoke JSB_glTexSubImage2D, location: C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp:2282
03-04 16:10:31.811 13828-13873/org.cocos2d.testOnlineImg E/jswrapper: [ERROR] (C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp, 2278): glTexSubImage2D((GLenum)target , (GLint)level , (GLint)xoffset , (GLint)yoffset , (GLsizei)width , (GLsizei)height , (GLenum)format , (GLenum)type , (GLvoid*)pixels); GL error 0x502: GL_INVALID_OPERATION
03-04 16:10:31.811 13828-13873/org.cocos2d.testOnlineImg E/jswrapper: [ERROR] Failed to invoke JSB_glTexSubImage2D, location: C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp:2282
测试工程见附件
test.zip (188.4 KB)
