PDA

View Full Version : clGetGLContextInfoKHR unresolved



jstier
04-15-2011, 11:47 AM
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

david.garcia
04-15-2011, 04:07 PM
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.