From dcd40f75d7880cb0db07966b6fedaabae91ecdfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 30 Nov 2022 12:03:31 +0100 Subject: [PATCH] MeshTools: update some outdated code comments. --- src/Magnum/MeshTools/Compile.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Magnum/MeshTools/Compile.cpp b/src/Magnum/MeshTools/Compile.cpp index f9cb2e02c..f8a8f13f6 100644 --- a/src/Magnum/MeshTools/Compile.cpp +++ b/src/Magnum/MeshTools/Compile.cpp @@ -91,12 +91,12 @@ GL::Mesh compileInternal(const Trade::MeshData& meshData, GL::Buffer&& indices, attribute.emplace(Shaders::GenericGL3D::Position{}, format); break; case Trade::MeshAttribute::TextureCoordinates: - /** @todo have Generic2D derived from Generic that has all + /** @todo have GenericGL2D derived from Generic that has all attribute definitions common for 2D and 3D */ attribute.emplace(Shaders::GenericGL2D::TextureCoordinates{}, format); break; case Trade::MeshAttribute::Color: - /** @todo have Generic2D derived from Generic that has all + /** @todo have GenericGL2D derived from Generic that has all attribute definitions common for 2D and 3D */ /* Pick Color4 always, the format will properly reduce it to a 3-component version if needed */ @@ -115,7 +115,9 @@ GL::Mesh compileInternal(const Trade::MeshData& meshData, GL::Buffer&& indices, break; #ifndef MAGNUM_TARGET_GLES2 case Trade::MeshAttribute::ObjectId: - attribute.emplace(Shaders::GenericGL3D::ObjectId{}, format); + /** @todo have GenericGL2D derived from Generic that has all + attribute definitions common for 2D and 3D */ + attribute.emplace(Shaders::GenericGL2D::ObjectId{}, format); break; #endif