EGL_BAD_MATCH用的Droid / Droid 2的 [英] EGL_BAD_MATCH with Droid/Droid 2

查看:160
本文介绍了EGL_BAD_MATCH用的Droid / Droid 2的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在测试各种电话我的OpenGL ES 2应用程序。我跑进与Droid和Droid的2.每个EGL配置我尝试导致一个EGL_BAD_MATCH的一个问题。

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.

我已经试过EGL配置的多种组合,其中包括配置的其他手机的工作,每一个组合产生的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?

感谢

推荐答案

我也对选择摩托罗拉和三星手机的这个问题。现在的问题是在电话报告大于表面不同的像素格式期待。您需要设置与该手机合适的像素格式,这是最有可能PixelFormat.RGB565表面视图

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

凯文

这篇关于EGL_BAD_MATCH用的Droid / Droid 2的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆