Skip to content

Commit

Permalink
chore: add a comment for texture mipmap generation
Browse files Browse the repository at this point in the history
  • Loading branch information
painfulexistence committed Jul 31, 2024
1 parent d978e56 commit 378fc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AtmosphericEngine/graphics_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void GraphicsServer::LoadTextures(const std::vector<std::string>& 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]));
}
Expand Down

0 comments on commit 378fc5e

Please sign in to comment.