mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Reintroduce mipmaps for images in the UI like screenshots (D3D11, OpenGL, D3D9)
This commit is contained in:
1 parent
21d97a7947
commit
8a8360ef96
9 files changed
+68
-42
No files matched your search
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user