Reintroduce mipmaps for images in the UI like screenshots (D3D11, OpenGL, D3D9)

This commit is contained in:
Henrik Rydgard committed 2017-03-12 16:30:53 +01:00
1 parent 21d97a7947
commit 8a8360ef96
9 files changed
+68 -42

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ void AsyncImageFileView::SetFilename(std::string filename) {
void AsyncImageFileView::Draw(UIContext &dc) {
using namespace Draw;
if (!texture_ && !textureFailed_ && !filename_.empty()) {
texture_ = CreateTextureFromFile(dc.GetDrawContext(), filename_.c_str(), DETECT);
texture_ = CreateTextureFromFile(dc.GetDrawContext(), filename_.c_str(), DETECT, true);
if (!texture_)
textureFailed_ = true;
}