Fix a OpenGL backend DeleteTexture crash (Fixes #499)
Fix a crash in DeleteTexture by handling cases where the head or tail (or both) of the linked list is being deleted.
Fix a crash in DeleteTexture by handling cases where the head or tail (or both) of the linked list is being deleted.