From 6a37f15e5a502152fcc9bc2389f944bf552ad618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 6 Oct 2018 17:34:59 +0200 Subject: [PATCH] Readd mipmaps 'bug' in Image::expand_x2_hq2x, fixing it caused a regression Fixes #22747. --- core/image.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/image.cpp b/core/image.cpp index e2b56c51dc3..3d85bdd345d 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -1198,7 +1198,9 @@ void Image::expand_x2_hq2x() { if (current != FORMAT_RGBA8) convert(current); - if (used_mipmaps) { + // FIXME: This is likely meant to use "used_mipmaps" as defined above, but if we do, + // we end up with a regression: GH-22747 + if (mipmaps) { generate_mipmaps(); } }