ANGLE EAGL EGL_ANGLE_iosurface_client_buffer implementation is incorrect for simulator
- the buffer unpack state probably should be always set when calling glTexImage2D. Now it's only called if textureData != nullptr
- the unpack buffer should be set to nullptr
- the texture data base address should be obtained based on the plane of the texture
Thanks for uncovering these issues Kimmo.
Do you plan to take this? I see I left a few TODOs in ANGLE's src/libANGLE/renderer/gl/eagl/IOSurfaceSurfaceEAGL.mm .