Simplification around textures

This commit is contained in:
Henrik Rydgård committed 2017-01-24 20:59:00 +01:00
1 parent d8dbb8389b
commit 528af8a939
11 files changed
+86 -51

No files matched your search

-2
View File
@@ -81,8 +81,6 @@ void AsyncImageFileView::Draw(UIContext &dc) {
texture_ = CreateTextureFromFile(dc.GetThin3DContext(), filename_.c_str(), DETECT);
if (!texture_)
textureFailed_ = true;
else if (textureAutoGen_) // TODO: Iffy
texture_->GetTexture()->AutoGenMipmaps();
}
if (HasFocus()) {