4 messages in com.googlegroups.android-internals[android-internals] Re: how Google An...
FromSent OnAttachments
Susmith M R17 Apr 2008 08:55 
David Given17 Apr 2008 15:52 
Susmith M R17 Apr 2008 21:04 
David Given18 Apr 2008 14:07 
Subject:[android-internals] Re: how Google Android's surface manager works?
From:David Given (dg@cowlark.com)
Date:04/18/2008 02:07:35 PM
List:com.googlegroups.android-internals

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)

Susmith M R wrote:

Hai, But luckly it is succeceding in eglCreateContext function in android. But the eglCreateWindowSurface is failing with the return error EGL_BAD_MATCH.

Oops, my mistake. I carefully checked the API and then cut-and-pasted the wrong function.

It's eglCreateWindowSurface() into which you pass the NativeWindowType value as the third parameter, not eglCreateContext(). See the man page:

http://www.khronos.org/opengles/documentation/opengles1_0/html/eglCreateWindowSurface.html