Hi all
I am doing some raytracing stuff with opengl and opencl.
I am trying to set the context for interoperability. I googleled for this.
I succesfully set the context on my Mac, 9400M GeForce, and run my code.

But when I change to a linux system with GPU
GeForce GTX 480/PCI/SSE2

and linux version

Linux version 2.6.32-5-amd64 (Debian 2.6.32-15) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-1) ) #1 SMP Tue Jun 1 04:34:03 UTC 2010

I got CL_INVALID_OPERATION for the clCreateContextFromType function

this is my code

Code :
#if defined (__APPLE__) || defined(MACOSX)
	CGLContextObj kCGLContext = CGLGetCurrentContext();
	CGLShareGroupObj kCGLShareGroup = CGLGetShareGroup(kCGLContext);
	cl_context_properties properties[] =
		CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE, (cl_context_properties)kCGLShareGroup,
	maincontext =clCreateContext(properties,0,0,clLogMessagesToStderrAPPLE,0,&err);
	cl_platform_id platform;
	err = clGetPlatformIDs(1, &platform, NULL);
	reportaError("error en el platform",err);
	cl_context_properties props[] =
		CL_GL_CONTEXT_KHR, (cl_context_properties)glXGetCurrentContext(),
		CL_GLX_DISPLAY_KHR, (cl_context_properties)glXGetCurrentDisplay(),
		CL_CONTEXT_PLATFORM, (cl_context_properties)platform,
	maincontext=clCreateContextFromType(props, CL_DEVICE_TYPE_GPU, NULL, NULL, &err);

I was looking at the forum for something similar, but I didnt find anything during the last week. I am frustrated with this that maybe is kind of easy to solve.

The code run on mac, so I think the only difference is in the context creation.
(Before calling this code I create a GLUT window

If you know any clue.. =)