clGetGLContextInfoKHR unresolved

Hi,

I just tried to use clGetGLContextInfoKHR and it turns out that I get an “unresolved external symbol” error. Is that function not supported yet? I am using the OpenCL.lib from the latest NVIDIA Computing SDK.

Is there any other way to find out on which one of the devices the current OpenGL context has been created on?

Thx

I just tried to use clGetGLContextInfoKHR and it turns out that I get an “unresolved external symbol” error. Is that function not supported yet? I am using the OpenCL.lib from the latest NVIDIA Computing SDK.

When you use a function that is defined in an extension you need to use clGetExtensionFunctionAddress() to get a pointer to it.