Browse Source

Text: fix an unused variable warning on no-assert builds.

pull/680/head
Vladimír Vondruš 10 months ago
parent
commit
3a63bcdb1b
  1. 3
      src/Magnum/Text/DistanceFieldGlyphCacheGL.cpp

3
src/Magnum/Text/DistanceFieldGlyphCacheGL.cpp

@ -123,6 +123,9 @@ Range2Di paddedImageRange(const Vector3i& cacheSize, const Vector2i& imageOffset
/* As the size is also a multiple of ratio, the resulting size should not
get larger */
CORRADE_INTERNAL_ASSERT(paddedMaxRounded <= cacheSize.xy());
#ifdef CORRADE_NO_ASSERT
static_cast<void>(cacheSize);
#endif
return {paddedMinRounded, paddedMaxRounded};
}

Loading…
Cancel
Save