fix bug of load a texture and get opengl extension string