OpenGL 纹理在 Motorola Milestone 上失败

发布于 2024-09-07 07:46:50 字数 177 浏览 5 评论 0原文

我在使用 2.1 固件的 Motorola Milestone 上使用 OpenGL 纹理时遇到问题。每次调用 glGenTextures 都会失败并出现错误 GL_INVALID_OPERATION 并使用随机数设置 id。完全相同的应用程序在 G1 上运行,没有任何错误。

有没有人有类似问题的实践经验并且知道解决方法?

I have troubles with OpenGL textures on Motorola Milestone with 2.1 firmware. Each call to glGenTextures fails with error GL_INVALID_OPERATION and sets the id with random numbers. The exact same application works on G1 without any error.

Does anybody have a hands-on experience with a similar issue and knows a way around?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

许一世地老天荒 2024-09-14 07:46:51

已解决:GL错误实际上是在glTexImage2d上,因为我使用3作为internalFormat,使用GL_RGB作为format。将两者设置为 GL_RGB 后,错误消失了

Resolved: the GL error was actually on glTexImage2d, because I was using 3 for internalFormat and GL_RGB for format. After setting both to GL_RGB errors went away

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