opencl opengl inter operability

Hi forum,

I managed to enable the opencl opengl interoperability to an application .

But the application crashes when i resize the window with the following information:


GLEW Status: 1.6.0
OpenCL Platform 0: NVIDIA Corporation
OpenCL Device 0: Type = TYPE_GPU
OpenCL Device 0: Name = GeForce GTX 560M
OpenCL Device 0: Compute units = 4
OpenCL Device 0: Max. work group size = 1024
[SELECTED] OpenCL Device 0: Type = TYPE_GPU
[SELECTED] OpenCL Device 0: Name = GeForce GTX 560M
[SELECTED] OpenCL Device 0: Compute units = 4
[SELECTED] OpenCL Device 0: Max. work group size = 1024
Reading file 'rendering_kernel.cl' (size 3678 bytes)
OpenCL Device 0: kernel work group size = 768
Failed to enqueue OpenCL work: -1000
Segmentation fault (core dumped)


Otherwise the application works fine.

Any hint on what might have caused the problem?

Regards
Sajjad

Changing the window size will change the size of the Render Target you started the interop with. This could be a problem. Example:
Startup Windowsize 800x600
Interop Buffer init 800x600
Scale Window to 850x500
–> Interop buffer will be read at invalid location

I havent used the interop yet so this is just a problem i could imagine. Look for the resize callback funtion to update or invalidate the buffer on openCL side.

Greetings,
clint3112