resources.load(url, Texture2D, (err, texture2d) => {
!err && this.meshRenderer.material?.setProperty('mainTexture', texture2d);
});
通过resources.load加载图片后刷新不出,报错
06-04 13:46:12.189 19022-19076/com.cocos.panorama E/Cocos: 13:46:12 [ERROR]: [ERROR] file D:/development/CocosDashboard_1.0.12/resources/.editors/Creator/3.1.1/resources/resources/3d/engine-native/cocos/renderer/gfx-gles2/GLES2Commands.cpp: line 720
06-04 13:46:12.189 19022-19076/com.cocos.panorama E/Cocos: 13:46:12 [ERROR]: glTexImage2D(GL_TEXTURE_2D, i, gpuTexture->glInternelFmt, w, h, 0, gpuTexture->glFormat, gpuTexture->glType, nullptr) returned GL error: 0x505
06-04 13:46:12.189 19022-19076/com.cocos.panorama E/assert: D:/development/CocosDashboard_1.0.12/resources/.editors/Creator/3.1.1/resources/resources/3d/engine-native/cocos/renderer/gfx-gles2/GLES2Commands.cpp function:cmdFuncGLES2CreateTexture line:720
06-04 13:46:12.189 19022-19076/com.cocos.panorama E/Cocos: 13:46:12 [ERROR]: [ERROR] file D:/development/CocosDashboard_1.0.12/resources/.editors/Creator/3.1.1/resources/resources/3d/engine-native/cocos/renderer/gfx-gles2/GLES2Commands.cpp: line 2408
06-04 13:46:12.199 19022-19076/com.cocos.panorama E/Cocos: 13:46:12 [ERROR]: glTexSubImage2D(GL_TEXTURE_2D, region.texSubres.mipLevel, region.texOffset.x, region.texOffset.y, w, h, gpuTexture->glFormat, gpuTexture->glType, (GLvoid *)buff) returned GL error: 0x502
06-04 13:46:12.199 19022-19076/com.cocos.panorama E/assert: D:/development/CocosDashboard_1.0.12/resources/.editors/Creator/3.1.1/resources/resources/3d/engine-native/cocos/renderer/gfx-gles2/GLES2Commands.cpp function:cmdFuncGLES2CopyBuffersToTexture line:2408
哪个大神能告诉下怎么解决么
