2012-06-18 69 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