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

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "I have always wished for my computer to be as easy to use as my
│ telephone; my wish has come true because I can no longer figure out
│ how to use my telephone." --- Bjarne Stroustrup

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to