Generate mipmap levels for screenshot views.

This commit is contained in:
Unknown W. Brackets committed 2016-06-12 07:15:45 -07:00
1 parent 6151f8ef9f
commit 5b402dd6e5
2 files changed
+5 -1

No files matched your search

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