mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Set debug names for more framebuffers and textures
This commit is contained in:
1 parent
2f5de1987e
commit
fbf6008a03
11 files changed
+29
-14
No files matched your search
+2
-2
@@ -202,11 +202,11 @@ Draw::Texture *ManagedTexture::GetTexture() {
|
||||
}
|
||||
|
||||
// TODO: Remove the code duplication between this and LoadFromFileData
|
||||
std::unique_ptr<ManagedTexture> CreateTextureFromFileData(Draw::DrawContext *draw, const uint8_t *data, int size, ImageFileType type, bool generateMips) {
|
||||
std::unique_ptr<ManagedTexture> CreateTextureFromFileData(Draw::DrawContext *draw, const uint8_t *data, int size, ImageFileType type, bool generateMips, const char *name) {
|
||||
if (!draw)
|
||||
return std::unique_ptr<ManagedTexture>();
|
||||
ManagedTexture *mtex = new ManagedTexture(draw);
|
||||
if (mtex->LoadFromFileData(data, size, type, generateMips, nullptr)) {
|
||||
if (mtex->LoadFromFileData(data, size, type, generateMips, name)) {
|
||||
return std::unique_ptr<ManagedTexture>(mtex);
|
||||
} else {
|
||||
// Best to return a null pointer if we fail!
|
||||
|
||||
Reference in new issue
Block a user