I am experiencing a problem with sharing a buffer between openCL and openGL.
I have a simple OpenGL application that renders into an offscreen FBO. I then have openCL code that captures the FBO contents using clCreateFromGLRenderbuffer and then post-processes the captured image. When I call clCreateFromGLRenderbuffer, the contents of the FBO get corrupted. I have verified this by using glBlitFramebuffer() to view the FBO contents.
After experiencing this problem, I wanted to determine whether or not this was a bug in my code. So, I ported the code to use the AMD opencl sdk (running on a different machine, with an AMD GPU), and it works fine there.