SDL、opengl es 和 IOS 处理异常

发布于 2024-12-28 00:49:47 字数 217 浏览 2 评论 0原文

我有一个问题。当我尝试运行我的项目时,它毫无例外地崩溃了。我尝试使用“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

行至春深 2025-01-04 00:49:47

确保传递的数组及其大小在调用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文