GL_RGBA should corresponds to ABGR8888.

Try GL_BGRA, which is ARGB8888.

Note: Actually it is possible intel vs gallium drivers GL_RGBA and GL_BGRA have different argb ordering. So perhaps try both so that all drivers are happy.

Le 28/03/2015 14:57, x414e54 a écrit :
I am attempting to pass a GL_TEXTURE_2D directly to a Wayland compositor by first converting it so an EGLImageKHR and then to a wl_buffer.

eglCreateImageKHR appears to work fine but when calling glCreateWaylandBufferFromImageWL I get EGL_BAD_MATCH "unsupported image format".

The GL_TEXTURE_2D is in GL_RGBA format.

Is this going to be possible or should I look for an alternative way?


I was originally blitting the texture to the default framebuffer and then trying to use eglSwapBuffers. But for some reason eglSwapBuffers was returning EGL_BAD_SURFACE even though eglMakeCurrent had no errors.


_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to