Browse Source

MeshTools: fix a unused variable warning on a no-assert build.

pull/623/head
Vladimír Vondruš 3 years ago
parent
commit
8e132b1ee2
  1. 2
      src/Magnum/MeshTools/Combine.cpp

2
src/Magnum/MeshTools/Combine.cpp

@ -63,7 +63,9 @@ Trade::MeshData combineIndexedImplementation(
for(std::size_t i = 0; i != meshes.size(); ++i) { for(std::size_t i = 0; i != meshes.size(); ++i) {
const Trade::MeshData& mesh = meshes[i]; const Trade::MeshData& mesh = meshes[i];
for(std::size_t j = 0; j != mesh.attributeCount(); ++j) { for(std::size_t j = 0; j != mesh.attributeCount(); ++j) {
#ifndef CORRADE_NO_ASSERT
const VertexFormat format = mesh.attributeFormat(j); const VertexFormat format = mesh.attributeFormat(j);
#endif
/* While interleavedLayout() has the same assert, we'd have no /* While interleavedLayout() has the same assert, we'd have no
way to detect if we should bail early if it triggers, so way to detect if we should bail early if it triggers, so
this is easier; plus the user gets a less confusing function this is easier; plus the user gets a less confusing function

Loading…
Cancel
Save