CL_OUT_OF_RESOURCES while calling clCreateFromGLTexture2d()

Hello forum,

I am having the above error. Any idea what might have caused this type of error. I have created the texture object with internal format “GL_RGBA32F_ARB” and according to the 1.1 specification it is mappable to the corresponding opencl type CL_RGBA. The texture object’s source format is “GL_RGBA” and source type is “GL_FLOAT”.

I have created the OpenCL context with CL-GL interoperability and the context creation gave me CL_SUCCESS. So i can be assured that the context creation is successful.

I shall be eagerly waiting for your hint over this issue. Let me know if you need more details.