开发者

IllegalArgumentException when trying to run an OpenGL ES 2.0 application

开发者 https://www.devze.com 2023-01-03 00:22 出处:网络
When I add the following line to my GLSurfaceView class I get an IllegalArgumentException from some random place. I don\'t know where the problem is because it doesn\'t give a stack trace.

When I add the following line to my GLSurfaceView class I get an IllegalArgumentException from some random place. I don't know where the problem is because it doesn't give a stack trace.

setEGLCont开发者_开发问答extClientVersion(2);

What else do I need to do to get an OpenGL ES 2.0 application to work?

NB: I'm trying to run the application on the emulator.


OpenGL ES 2.0 isn't supported by the Android emulator.

See the post by Romain Guy (Android framework engineer) - http://groups.google.com/group/android-developers/browse_thread/thread/58a855ec8aba4c33

0

精彩评论

暂无评论...
验证码 换一张
取 消