Is it mandatory to use
Code :clGetGLContextInfoKHR_fn func = (clGetGLContextInfoKHR_fn)clGetExtensionFunctionAddress("clGetGLContextInfoKHR"); //Find the CL capable devices int the current GL context errNum = func(contextProperties,CL_DEVICES_FOR_GL_CONTEXT_KHR,0,NULL,&deviceSize);
while creating the OpenCL context with GL-CL interoperability ?
I have seen many examples where they are creating without referring to the above function .
I tried to use the above and i am getting undefined behavior with GTX 560M on Linux system
Any thoughts ?