mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
VK: Fix sometimes-missing images in GameScreen. Can't load textures from update(). (should probably make that possible though.. later).
This commit is contained in:
1 parent
0fd5d10ab8
commit
d6b8d9bfe5
4 files changed
+7
-6
No files matched your search
+2
-1
@@ -110,6 +110,7 @@ bool ManagedTexture::LoadFromFileData(const uint8_t *data, size_t dataSize, Imag
|
||||
num_levels = 1;
|
||||
}
|
||||
|
||||
// Free the old texture, if any.
|
||||
if (texture_) {
|
||||
delete texture_;
|
||||
texture_ = nullptr;
|
||||
@@ -134,7 +135,7 @@ bool ManagedTexture::LoadFromFileData(const uint8_t *data, size_t dataSize, Imag
|
||||
if (image[i])
|
||||
free(image[i]);
|
||||
}
|
||||
return texture_ != nullptr;
|
||||
return texture_;
|
||||
}
|
||||
|
||||
bool ManagedTexture::LoadFromFile(const std::string &filename, ImageFileType type, bool generateMips) {
|
||||
|
||||
Reference in new issue
Block a user