glGenMipmap後にflush->finishに変更