adds debug info
handles deprecation of clCreateFromGLTexture