图像在第一帧后消失,iOS,OpenGL
我编写了一个程序,应该在屏幕上渲染一个圆锥体。问题是,在第一帧中,我可以看到圆锥体在我的 iOS 模拟屏幕上正确显示;之后,圆锥体消失。当我设置断点时,所有数据对我来说似乎都没有问题。
我正在使用 OpenGL ES 1.0。
I wrote a program which should render a cone to the screen. The problem is that in the first frame I can see the cone displaying correctly on my iOS simulate screen; after that, the cone disappears. When I set a break point, all the data seems to be OK to me.
I am using OpenGL ES 1.0.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确实,您应该向我们展示一些代码...但无论如何,我遇到了同样的问题,在我的例子中,错误是我在调用
glEnableClientState(...)
初始化阶段,而glDisableClientState(...)
在每一帧(每次Render()
调用)。It is true that you should show us some code... But for all it's worth, I had the same problem and in my case the error was that I was calling the
glEnableClientState(...)
at the initialisation stage while theglDisableClientState(...)
at every frame (everyRender()
call).