我有
IOSurface* surface = [[IOSurface alloc] initWithProperties:properties];
我正试图将它传递给该函数
[self.mEAGLContext texImageIOSurface:surface target:GL_TEXTURE_2D internalFormat:GL_RGBA width:textureWidth height:textureHeight format:GL_RGBA type:GL_UNSIGNED_BYTE plane:0]
无法使用“IOSurface *”类型的左值初始化“IOSurfaceRef _Nonnull”类型的参数(也称为“__IOSurface *”)