Using glGenerateMipmap().