EGL_BAD_MATCH with Droid/Droid 2

前端 未结 2 1969
一生所求
一生所求 2020-12-22 09:59

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

2条回答
  •  有刺的猬
    2020-12-22 11:02

    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

提交回复
热议问题