2012-06-18 68 views
1

the docs for OpenGL ES 2.0 on Android,它指出:OpenGL ES 2.0的不工作

Caution: OpenGL ES 2.0 is currently not supported by the Android Emulator. You must have a physical test device running Android 2.2 (API Level 8) or higher in order to run and test the example code in this tutorial. 

然而,这,(http://android-developers.blogspot.com/2012/04/faster-emulator-with-better-hardware.html)规定:

As a bonus, since we’re now supporting OpenGL ES 2.0, your OpenGL games can now run inside the emulator. 

然而,我试图使用OpenGL在仿真器上出现ES 2.0并且出现错误,说设备(仿真器)不支持OpenGL ES 2.0>

虚拟机作为加速的Intel Atom x86进程运行我有GPU仿真设置为“是”。

我在64位Windows 7 Professional上使用API​​ Level 15和最新版本的SDK(19)。

我的CPU是:Intel Core i7-2670QM,我有一块NVIDIA GeForce GTX 560M。

任何想法?它应该工作吗?如果是这样,我该如何使它工作?

回答

0

事实证明,我看到的错误信息是我使用的3d框架(Rajawali)正在输出的东西。 OpenGL ES 2.0在模拟器上正常工作,但是,仿真器不报告它是受支持的。我删除了支票,它工作正常。

+0

你可以告诉我你做了什么。请提及steps.i得到相同的错误通过[user:user1322495](http://stackoverflow.com/users/1322495/user1322495) – MKJParekh

+0

如果您使用的是Rajawali,我已经提交了一个修补程序来修复它。 ..但是,我敢肯定,截至目前,它还没有被打包成一个新的JAR ......你必须自己去做。如果您不使用Rajawali,那么我无法帮到您,您只需自己查找并禁用OpenGL ES 2.0兼容性代码即可。 – aegamesi