It seems OpenCL somehow allocates too much memory when I point opengl 3d texture as OpenCL object.
look to the code:

unsigned char* data = new unsigned char[length*length*length*4];
for...