OpenGL EGL Config_android 2.0

Posted: November 9, 2009 in Android, Java, Mobile
Tags: ,

In Android 1.1 to Androidd 1.6 EGL configuraitons were being read/sorted worng  and thus:

 

nt[] configSpec = {
        EGL10.EGL_RED_SIZE,      5,
        EGL10.EGL_GREEN_SIZE,    6,
        EGL10.EGL_BLUE_SIZE,     5,
        EGL10.EGL_DEPTH_SIZE,   16,
        EGL10.EGL_NONE
}; 

would work on Android 1.1 through Android 1.6. However, in Andoroid 2.0 you have to use:

nt[] configSpec = {
        EGL10.EGL_RED_SIZE,      5,
        EGL10.EGL_GREEN_SIZE,    6,
        EGL10.EGL_BLUE_SIZE,     5,
        EGL10.EGL_DEPTH_SIZE,   16,
        EGL10.EGL_DONT_CARE
}; 

as the higher config beynd 565 was being sorted read first hence the error.

Reblog this post [with Zemanta]
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s