Buildfix, warning fixes

This commit is contained in:
Henrik Rydgård committed 2018-03-01 13:50:56 +01:00
1 parent ee752f5399
commit 1e940f4973
3 files changed
+4 -4

No files matched your search

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