glBlitFramebuffer throws GL_INVALID_OPERATION on some devices
zoopolitic opened this issue · 0 comments
On some devices (like Lenovo S580, Android 4.4.2), glBlitFrameBuffer throws:
W/Adreno-ES20: <core_glBlitFramebuffer:429>: GL_INVALID_OPERATION 04-02 01:16:39.274 W/GLConsumer: [unnamed-19017-1] bindTextureImage: clearing GL error: 0x502
I've read the documentation for glBlitFrameBuffer (https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glBlitFramebuffer.xhtml) and since you're using only GLES30.GL_COLOR_BUFFER_BIT
I suppose that problem is somewhere here:
GL_INVALID_OPERATION is generated if mask contains GL_COLOR_BUFFER_BIT and any of the following conditions hold:
The read buffer contains fixed-point or floating-point values and any draw buffer contains neither fixed-point nor floating-point values.
The read buffer contains unsigned integer values and any draw buffer does not contain unsigned
integer values.The read buffer contains signed integer values and any draw buffer does not contain signed integer
values.
Do you have any guess about the root of the problem?
Thanks