SDL、opengl es 和 IOS 处理异常
我有一个问题。当我尝试运行我的项目时,它毫无例外地崩溃了。我尝试使用“try-catch”,但它导致了相同的结果。也许有人可以建议我一些 SDL 或 opengl es 方法来处理这个错误?
附: glDrawArrays() - 导致错误的函数。
I`m using sdl-1.3, opengl es 1.1, C++, X-Code
I have a problem. When I try to run my project, it crashes without any exceptions. I tried to use “try - catch” but it caused the same result. Maybe someone can advise me some SDL or opengl es methods to handle this error?
PS:
glDrawArrays() - Function which leads to an error.
I`m using sdl-1.3, opengl es 1.1, C++, X-Code
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保传递的数组及其大小在调用 glDrawArrays 时有效。如果没有,那么根据您的显卡驱动程序,可能会发生奇怪的事情,从飞行的多边形、迷幻的多边形颜色、系统挂起,甚至应用程序退出。
Make sure that the passed arrays and their sizes are valid on calling glDrawArrays. If not then depending on your graphics card driver weird things can happen, beginning from flying polyons, psychodelic polygon colors, system hangs, or even application exit.