Struggling with EXT_multisampled_render_to_texture on Mali-G76

I'm trying to get working multisampled FBO on Samsung Galaxy S10+ with Mali-G76 (Android 10).

Minimal example from spec fails with GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT (8D56) for me.
Tried it with 256x256, 1024x768, 4 samples, GL_MAX_SAMPLES_EXT is 4.
I'm building app with gl2.h and gl2ext.h and ndk-r19c.

OpenGL version: OpenGL ES 3.2 v1.r19p0-01rel0.###other-sha0123456789ABCDEF0### Compatibility profile

My desired setup is:
- bind texture to COLOR_ATTACHMENT_0 (with glFramebufferTexture2DMultisampleEXT)

- bind d24s8 multisampled renderbuffer to both DEPTH_ATTACHMENT and STENCIL_ATTACHMENT (create with glRenderBufferStorageMultisample, bind with glFramebufferRenderBuffer)

Is there any detail I missed about using this extension?

Parents Reply Children
No data
More questions in this forum