PDA

View Full Version : eglCopyBuffers



ivanzhang1031
01-13-2010, 08:15 PM
Hi All

I use eglCopyBuffers to copy color buffer to a native pixmap.
I simply call eglCopyBuffers(gEglDisplay, gEglWindow, eglDataFromDump);

eglDataFromDump is a EGLNativePixmapType variable.
I set EGLNativePixmapType eglDataFromDump = NULL;

Finally,the copy operation failed, and eglDataFromDump is empty.

What is the problem of the usage of eglCopyBuffers?

Thanks

jpilon
01-14-2010, 04:09 PM
i think you need to create a native pixmap then pass the handle cast to EGLNativePixmapType and not just a null pointer.

ivanzhang1031
01-17-2010, 07:20 PM
yes, this is the problem, once i think EGL will create and allocate for user, but it seems not. i will try it. thanks

tantissimo
05-30-2012, 02:38 AM
Hi,
I have same problem! How have you resolve?

Gaetano