From 8486cd2c0ec15a6215d80d083dec723e316a3b03 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 10 Jun 2018 08:21:35 +0200 Subject: [PATCH] - fixed generation of brightmaps for sprites. This forgot to take the added empty border for filtering improvement into account. --- src/hwrenderer/textures/hw_material.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hwrenderer/textures/hw_material.cpp b/src/hwrenderer/textures/hw_material.cpp index c65bfb515..23242c91c 100644 --- a/src/hwrenderer/textures/hw_material.cpp +++ b/src/hwrenderer/textures/hw_material.cpp @@ -453,7 +453,7 @@ void FMaterial::Bind(int clampmode, int translation) layer = mTextureLayers[i].texture; } auto systex = ValidateSysTexture(layer, mExpanded); - systex->BindOrCreate(layer, i+1, clampmode, 0, 0); + systex->BindOrCreate(layer, i+1, clampmode, 0, mExpanded ? CTF_Expand : 0); maxbound = i+1; } }