My application render the image in a OpenGL FBO.
Then I have attached an OpenGL Renderbuffer to this FBO.

I have created an Image2D OpenCL memory object with clCreateFromGLRenderbuffer
Now my Kernel use an Image2D as input from the Renderbuffer.

My question is the following, is the OpenCL memory object up to date when I call glFlush or do I need
to call an OpenCL function to tell that the Image2D memory object must be updated with the content of the OpenGL Renderbuffer ?

I have seen that I need to acquire and release the memory object which is shared with an OpenGL object,
but I don't have seen anything to update the memory object from the renderbuffer.

Anyone has any explanations ?