made load ogl texture more convenient