gpt4 book ai didi

android - eclipse 和 opengl-es-2.0,info.reqGlEsVersion 为零

转载 作者:搜寻专家 更新时间:2023-11-01 07:38:32 24 4
gpt4 key购买 nike

当我尝试使用 adt 和 od 在 eclipse 中运行一个程序时,检查

if(info.reqGlEsVersion <  0x20000)

总是失败。我设置了一个断点并查看了 info 对象,reqGlEsVersion0

我用多个虚拟设备和 api 对此进行了测试,一个版本为 2.3.3,另一个版本为 3.0。据我所知,gl es 2.0 的最低要求是 android 2.2,因此它应该可以正常运行。除了更改 api,我还使用了设备快照选项和标准配置

我是否错过了一些配置步骤或其他什么?

顺便说一下,eclipse 版本是 2.5.1

最佳答案

我听从了这个链接的建议 http://www.learnopengles.com/android-emulator-now-supports-native-opengl-es2-0/

来自链接的评论是:

Two notes about the GPU emulation

First, you need to edit your emulator image, go down to the hardware section, and add “GPU Emulation” and set it to true.

Second, there’s a bug with the emulator such that this line: “final boolean supportsEs2 = configurationInfo.reqGlEsVersion >=0×20000;” does not work. It will always return false. You can add “||Build.FINGERPRINT.startsWith(“generic”)” or simply comment out thesechecks and assume that OpenGL ES 2 is supported, when running on theemulator.

关于android - eclipse 和 opengl-es-2.0,info.reqGlEsVersion 为零,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7190240/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com