Resolved the crash problem under posix due to run glGenTextures and glDeleteTextures in different threads