1

I was wondering if I can deallocate the depth buffer in iPhone OpenGL ES to conserve memory? Or it stays until the application finishes?

I only need the depth testing in the beginning of the application.

4

2 回答 2

4

是的,您可以随时删除深度缓冲区。您的代码负责创建深度渲染缓冲区并将其附加到帧缓冲区(尽管这可能由您复制的某些模板代码完成),因此您可以类似地分离和删除它。

于 2010-05-15T16:19:22.263 回答
1

您可以创建一个新的 EAGLContext 对象并摆脱旧的对象。当您创建新的时,您可以根据需要进行设置。

于 2009-08-01T03:57:25.303 回答