Open Skroopa opened 5 months ago
Do you have a demo to reproduce it?
just enable PostProcess for your project and on this specific Android device you will not see anything on the screen. In any case, I created an example for you: pp_bug.zip I could help with testing, if it will be required.
Have you tried on other Android devices? I don't have the specific Android device.
no problems on other Android devices that I have
The issue seems caused by it
E/Cocos: 21:47:46 [ERROR]: [SE_ERROR] (C:/ProgramData/cocos/editors/Creator/3.8.3/resources/resources/3d/engine/native/cocos/bindings/manual/jsb_global.cpp, 1370): wrong number of arguments: 0, was expecting 1
Could you please print the javascript call stack by invoking ScriptEngine::getInstance()->getCurrentStackTrace()
Doesn't look like it, something wrong with GLES setup itself. Texture cannot be created:
glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH24_STENCIL8_OES, 800, 480, 0, GL_DEPTH_STENCIL_OES, GL_UNSIGNED_INT_24_8_OES, nullptr)
This line causes the issue: https://github.com/cocos/cocos-engine/blob/983232bff571bae3ca4f78325a689c86d920afb8/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp#L141 And it must be:
case Format::DEPTH_STENCIL: return GL_DEPTH_STENCIL_OES;
Since GL_DEPTH24_STENCIL8_OES
is not supported on some devices with GLES2.0 backend (see Usage Example section). Could you make a PR? Or I could do this.
@Skroopa thanks a lot. We can make a PR if it is not convenient for you to do it.
yes please, create the PR. NOTE: PostProcess doesn't work still, but this fix will help only with 0x501, 0x506 GL errors on texture creation.
This line causes the issue:
And it must be:
case Format::DEPTH_STENCIL: return GL_DEPTH_STENCIL_OES;
Since
GL_DEPTH24_STENCIL8_OES
is not supported on some devices with GLES2.0 backend (see Usage Example section). Could you make a PR? Or I could do this.
As less bit will have less precision. So i am not sure if it is a good idea to modify it for all android devices.
I think we should check extension to do it.
Cocos Creator version
3.8.3
System information
Android 5.1
Issue description
None of built-in PostProcess effects work on my DIGMA Linx A400 3G LT4001PG (Android 5.1) device. First, it fails with
GL error: 0x501
and thenGL error: 0x506
every updateRelevant error log output
Steps to reproduce
Run any PostProcess effect
Minimal reproduction project
Run any PostProcess effect