安卓& SDL:“调用未实现的 OpenGL ES API”

发布于 2024-11-25 17:34:46 字数 585 浏览 5 评论 0原文

我正在尝试在我的设备上运行 "Alien Shooter" Android/SDL 示例新的三星 Galaxy Fit。我没有更改任何代码的初始状态。在模拟器上一切正常,但在真实设备上,我得到黑屏并且:

“libEGL:调用未实现的 OpenGL ES API”

Logcat 中一遍又一遍地 。我能看出两者之间的唯一区别是模拟器尝试创建 GLES 2.0 上下文但失败了:

“SDL:没有可用的 EGL 配置”

此时它再次尝试,这次使用 GLES 1.1 成功。另一方面,硬件第一次不会失败,所以坚持使用版本 2。我尝试强制它从一开始就选择 GLES 1.1,但这只会使应用程序完全崩溃,无论是在模拟器上还是在硬件。

有什么想法吗?

I'm trying to run the "Alien Shooter" Android/SDL example on my new Samsung Galaxy Fit. I have not changed any of the code from its initial state. On the emulator things work fine but on the real device, I get a black screen and:

"libEGL: called unimplemented OpenGL ES API"

over and over again in Logcat. The only difference between the two that I can make out is that the emulator attempts to create a GLES 2.0 Context but fails:

"SDL: No EGL config available"

at which point it tries again, this time successfully with GLES 1.1. The Hardware, on the other hand, doesn't fail the first time so sticks with version 2. I've tried forcing it to choose GLES 1.1 from the beginning, but this just crashes the App altogether, both on the emulator and on the hardware.

Any ideas?

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

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

发布评论

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

评论(2

暮光沉寂 2024-12-02 17:34:46

这个问题可以通过强制使用 OpenGLES1.1 而不是 2.0 来解决。此外,较新版本的 SDL 1.3 现在也支持 OpenGLES2.0 - 请参阅此处:
http://bugzilla.libsdl.org/show_bug.cgi?id=1291

This issue can be solved by forcing the use of OpenGLES1.1 rather than 2.0. In addition, newer versions of SDL 1.3 now support OpenGLES2.0 as well - see here:
http://bugzilla.libsdl.org/show_bug.cgi?id=1291

机场等船 2024-12-02 17:34:46

在我看来,你的程序找不到该库。它试图使用一个没有实现的已定义函数,该函数将在库中。

It appears to me that your program cannot find the library. It is trying to use a defined function that has no implementation, which would be in the library.

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