From 8f5b39487c43a38a17dccf38b8e1dd7bde1088ef Mon Sep 17 00:00:00 2001 From: Skarn Date: Mon, 28 Feb 2022 01:58:24 +0300 Subject: [PATCH] texture swapper: fix render update --- src/noggit/MapChunk.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/noggit/MapChunk.cpp b/src/noggit/MapChunk.cpp index 948231e9..7b40d3a6 100644 --- a/src/noggit/MapChunk.cpp +++ b/src/noggit/MapChunk.cpp @@ -1271,6 +1271,7 @@ int MapChunk::addTexture(scoped_blp_texture_reference texture) void MapChunk::switchTexture(scoped_blp_texture_reference const& oldTexture, scoped_blp_texture_reference newTexture) { texture_set->replace_texture(oldTexture, std::move (newTexture)); + registerChunkUpdate(ChunkUpdateFlags::ALPHAMAP); } bool MapChunk::paintTexture(glm::vec3 const& pos, Brush* brush, float strength, float pressure, scoped_blp_texture_reference texture)