EGL_VENDOR: ARM
EGL_VERSION: 1.4 Linux-r2p0-05rel0
GL_RENDERER: Mali-400 MP
Sample code:
GLuint texHandle; GLuint fboHandle; GLenum format = GL_RGB; glGenTextures(1, &texHandle); glBindTexture(GL_TEXTURE_2D, texHandle); glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, GL_UNSIGNED_BYTE, NULL); glGenFramebuffers(1, &fboHandle)); glBindFramebuffer(GL_FRAMEBUFFER, fboHandle)); glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texHandle, 0); GLenum res = glCheckFramebufferStatus(GL_FRAMEBUFFER);
If I set format to GL_RGBA, the framebuffer status is GL_FRAMEBUFFER_COMPLETE
If I set format to GL_RGB instead, the framebuffer status is GL_FRAMEBUFFER_UNSUPPORTED
So, does this mean that mali does not support rendering to GL_RGB textures? And if so, is support for it implemented in newer driver versions?
Share this 












