mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
Minor GameInfo memory handling improvements. Still not great.
This commit is contained in:
1 parent
0f4e064053
commit
60378a0dcb
7 files changed
+39
-42
No files matched your search
@@ -156,6 +156,7 @@ bool ManagedTexture::LoadFromFile(const std::string &filename, ImageFileType typ
|
||||
ManagedTexture *CreateTextureFromFile(Draw::DrawContext *draw, const char *filename, ImageFileType type, bool generateMips) {
|
||||
if (!draw)
|
||||
return nullptr;
|
||||
// TODO: Load the texture on a background thread.
|
||||
ManagedTexture *mtex = new ManagedTexture(draw);
|
||||
if (!mtex->LoadFromFile(filename, type, generateMips)) {
|
||||
delete mtex;
|
||||
|
||||
Reference in new issue
Block a user