OpenGL和Unity无法在iOS上协同工作

时间:2011-08-15 14:15:35

标签: ios xcode unity3d opengl-es

我已将我的游戏从Unity导出到Xcode,一切正常,游戏正常运行。

我决定在菜单中添加一个OpenGLView(在Xcode中构建),在具有2D纹理的3D平面上进行一些转换,然后在UIImage中捕获它。一切都很好,图像被拍摄,但当我进入Unity环境时,我收到:

floomzer(9403,0x3fc1448c) malloc: *** mmap(size=1077534720) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
PlayerLoop called recursively!

(Filename: /Applications/buildAgent/work/6bc5f79e0a4296d6/Projects/../Runtime/Misc/Player.cpp Line: 1201)

PlayerLoop called recursively!

(Filename: /Applications/buildAgent/work/6bc5f79e0a4296d6/Projects/../Runtime/Misc/Player.cpp Line: 1201)

如果我没有加载菜单的OpenGL部分,而是直接进入Unity环境,则游戏正常启动。

它与Unity和我的OpenGL-ES视图有冲突吗? 我对OpenGL状态的更改是否会影响Unity OpenGL渲染?

0 个答案:

没有答案