- Home /
OpenGLES error 0x0502 when TextureFormat.BGRA32 is used
I am trying to render iPhone's native camera image as a texture. If I use TextureFormat.BGRA32 (which is native camera image format), OpenGLES yields 0x0502 errors and nothing is rendered. As a workaround, I am forced to use ARGB32 texture format with color conversion.
Do Unity really support TextureFormat.BGRA32 on iPhone? Are there any additional settings I am missing? How to render iPhone's native camera image without doing any color conversion. I do not want to use WebCamTexture, because camera image is generated inside a custom plugin.
Comment