Optimized the loadTexture in the OpenGL graphic driver.