EGL_BAD_MATCH with Droid/Droid 2

白昼怎懂夜的黑 提交于 2019-11-28 11:57:31

问题


I've been testing my OpenGL ES 2 app on various phones. I've ran into a problem with the Droid and Droid 2. Every EGL config I try results in an EGL_BAD_MATCH.

I've tried many combinations of EGL configurations, including configurations that work on other phones, and every combination results in an EGL_BAD_MATCH.

Has anyone ran into this problem or know of any solutions?

Thanks


回答1:


I also had this problem on select Motorola and Samsung handsets. The problem is the phone reports a different pixel format than the surface is expecting. You need to setup the surface view with the appropriate pixel format for that phone, which is most likely PixelFormat.RGB565

Kevin




回答2:


It is not an issue of handsets types, this issue can be on any handset and i don't know weather this problem is related to pixelFormat. But, I have solved it by deleting current emulator and create new emulator. If you deploy application on your device then you have to reboot your device.



来源:https://stackoverflow.com/questions/7523597/egl-bad-match-with-droid-droid-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!