From 227e60ca4c927ed9f6b7db5e5c53c45addd1428b Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 15 Apr 2024 08:03:26 +1000 Subject: new object lighting toggle, log non-master entity render/update exceptions --- source/rendering/StarFontTextureGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/rendering') diff --git a/source/rendering/StarFontTextureGroup.cpp b/source/rendering/StarFontTextureGroup.cpp index d5ad88d..e8f701a 100644 --- a/source/rendering/StarFontTextureGroup.cpp +++ b/source/rendering/StarFontTextureGroup.cpp @@ -56,7 +56,7 @@ const FontTextureGroup::GlyphTexture& FontTextureGroup::glyphTexture(String::Cha res.first->second.offset = (preSize - Vec2F(image.size())) / 2; } - catch (StarException&) { + catch (StarException const&) { image.forEachPixel([](unsigned x, unsigned y, Vec4B& pixel) { pixel = ((x + y) % 2 == 0) ? Vec4B(255, 0, 255, pixel[3]) : Vec4B(0, 0, 0, pixel[3]); }); -- cgit v1.2.3