when i am using clCreateGLTextureFrom2D, it is giving CL_INVALID_GLOBJECT error.

my code is working in single gpu mode, that is if i am not using XOpenDisplay,visualinfo functions then...