浏览代码

Merge pull request #22804 from akien-mga/works-better-with-a-bug

Readd mipmaps 'bug' in Image::expand_x2_hq2x, fixing it caused a regression
Rémi Verschelde 7 年之前
父节点
当前提交
aad70d5ebe
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      core/image.cpp

+ 3 - 1
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();
 	}
 }