Fixed memory leak where OpenGL textures weren't getting deleted because they were created on a different thread