Nuitrack with CEF


I am trying to integrate an offscreen rendring using CEF in my Nuitrack application.

The problem is that I get a segmentation error (SIGSEGV) when calling the function:
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, _width, _height, GL_RGB, GL_UNSIGNED_BYTE, _textureBuffer);

Here is a part of the code (the main loop) :

    while (!glfwWindowShouldClose(window))
            CefDoMessageLoopWork(); // I




Do you have any idea where the trouble might come from? Namely, the code I use is the one that allows me to use Nuitrack with OpenGL. If I remove the call to the CefDoMessageLoopWork function it works without any problems.

Hi Alexandre,

Did you fulfill all the requirements for the CefDoMessageLoopWork method? Please see the reference.