【发布时间】:2021-05-05 17:06:55
【问题描述】:
我正在将 iOS opengl 游戏移植到 metal
使用金属角度 https://github.com/kakashidinho/metalangle
我使用预编译的动态库
创建 MGLContext 时返回 nil
MGLContext * aaa = [MGLContext alloc];
aaa == nil
这是为什么呢?
我以为alloc只有在内存溢出时才会返回nil
【问题讨论】:
-
在设备和模拟器上都是 nil 吗?
-
什么返回
[MGLContext class]?
标签: objective-c null dynamic-library alloc