AnsweredAssumed Answered

glEGLImageTargetTexture2DOES: Assertion `0' failed

Question asked by Erik Larsson on Feb 3, 2013
Latest reply on Feb 22, 2013 by Guillermo Michel Jimenez
Branched to a new discussion

Hi!

 

I'm trying to use glEGLImageTargetTexture2DOES with out any luck! I only get Assertion failed:

test: /u/build/nightly_build/build/ltib/rpm/BUILD/amd-gpu-src-11.09.01/driver/buid/linux/mx51/../../../es20/src/gl2_framebufferobject.c:1867:

EGLImageTargetTexture2DOES: Assertion `0' failed.

  

What I'm trying to do is to share a EGLImage between two processes.

 

This is my testcode:

    EGLImageKHR eglImageHandle = eglCreateImageKHR(eglGetDisplay(EGL_DEFAULT_DISPLAY),

                                                   EGL_NO_CONTEXT,

                                                   EGL_NATIVE_PIXMAP_KHR,

                                                   (void*)physAddress(),

                                                   NULL);

 

 

    if( eglImageHandle == EGL_NO_IMAGE_KHR )

    {

        qDebug() << "eglCreateImageKHR failed";

    }

 

    GLuint textureId;

    glGenTextures(1, &textureId);

    glBindTexture(GL_TEXTURE_2D, textureId);

    glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, eglImageHandle);

 

 

 

 

 

 

Outcomes