0 Members and 1 Guest are viewing this topic.
cl_context_properties properties[] = { CL_GL_CONTEXT_KHR, (cl_context_properties)glXGetCurrentContext(), //the GL context id CL_GLX_DISPLAY_KHR, (cl_context_properties)glXGetCurrentDisplay(), //the display id CL_CONTEXT_PLATFORM, (cl_context_properties)the_cl_platform, //this is set up by me 0};cl_int error;//the_cl_device is set up by methe_cl_context = clCreateContext(properties, 1, &the_cl_device, 0, 0, &error);assert(error == CL_SUCCESS);