Fix misuse of glIsTexture