From 378fc5e3563317d31227431237c0d6b244bdd2fb Mon Sep 17 00:00:00 2001 From: loic <910041@gmail.com> Date: Wed, 31 Jul 2024 23:32:12 +0800 Subject: [PATCH] chore: add a comment for texture mipmap generation --- AtmosphericEngine/graphics_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AtmosphericEngine/graphics_server.cpp b/AtmosphericEngine/graphics_server.cpp index a8a2380..62b153d 100644 --- a/AtmosphericEngine/graphics_server.cpp +++ b/AtmosphericEngine/graphics_server.cpp @@ -200,7 +200,7 @@ void GraphicsServer::LoadTextures(const std::vector& paths) default: throw std::runtime_error(fmt::format("Unknown texture format at {}\n", paths[i])); } - glGenerateMipmap(GL_TEXTURE_2D); + glGenerateMipmap(GL_TEXTURE_2D); // must be called after glTexImage2D } else { throw std::runtime_error(fmt::format("Failed to load texture at {}\n", paths[i])); }