I have started to work with openCL and I have come across some weird stuff.

First of all, I am working on windows 7, 64bit, with netbeans 7.2, mingw, and the latest NVIDIA drivers for the GeForce GTX 680.

While developing with the most recent openCL in this driver (I am guessing openCL 1.2) I get an undefined reference to clCreateFromGLTexture().

So I decided to go back to 1.1 and work with clCreateFromGLTexture2D. Here I had no problem managing one texture on my openCL kernel. Now, I am trying to share 2 textures of the same size by passing the arguments as:
__kernel void mip( __read_only image2d_t front, __read_only image2d_t back, __write_only image2d_t final )

But I get an error -30 (CL_INVALID_VALUE) in clBuildProgram(program, 1, &device, NULL, NULL, NULL);

I thank you in advance for any help and, if this is a re-post, I apologize as I couldn't find anything here about this.

the shark