-
Creator 版本: 3.7.2
-
目标平台: Android 项目,release 包运行正常,debug 不行!必现
-
堆栈
[ERROR]: [ERROR] file /Applications/Cocos/Creator/3.7.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp: line 3154
E 03
08 [ERROR]: glReadPixels(region.texOffset.x, region.texOffset.y, region.texExtent.width, region.texExtent.height, glFormat, glType, copyDst) returned GL error: 0x506
A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 20773 (Thread-7), pid 20618 (arme.gamecenter)
出错场景:
我做了一个fix也不行:
readPixels 前增加了 targetTexture 有效性检查。
截图延迟由 1 帧改为 2 帧,确保渲染完成。
大佬们辛苦帮忙看看,匪夷所思

