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

Xtr*_*oce 2 eclipse android opengl-es-2.0

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

if(info.reqGlEsVersion <  0x20000)
Run Code Online (Sandbox Code Playgroud)

它总是失败.我设置了一个断点并查看了info对象和reqGlEsVersionis0

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

我错过了一些配置步骤或什么?

顺便说一下eclipse版本是2.5.1

Rah*_*hul 5

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

链接评论是:

关于GPU仿真的两个注意事项

首先,您需要编辑模拟器图像,转到硬件部分,然后添加"GPU Emulation"并将其设置为true.

其次,模拟器存在一个错误,即此行:"final boolean supportsEs2 = configurationInfo.reqGlEsVersion> = 0×20000;"不起作用.它总是会返回false.你可以添加"|| Build.FINGERPRINT.startsWith("generic")"或简单地注释掉这些检查,并假设在模拟器上运行时支持OpenGL ES 2.