finally resolved the crush problem under linux due to run glGenTextures and glDeleteTextures in different threads