summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Src/DebugUtil.cpp
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2013-11-17 10:34:34 +1300
committerMatthew Parlane <parlane@gmail.com>2013-11-17 10:34:34 +1300
commit71d70d896fd6012eea94042e962dad2009086038 (patch)
tree5b13f6fbc5a1eb737890fd25c11972b0f521d3a9 /Source/Core/VideoBackends/Software/Src/DebugUtil.cpp
parent2025f00f8836f529fecf6b6caded24c5db158357 (diff)
Api was too confusing for people.
Diffstat (limited to 'Source/Core/VideoBackends/Software/Src/DebugUtil.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/Src/DebugUtil.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Software/Src/DebugUtil.cpp b/Source/Core/VideoBackends/Software/Src/DebugUtil.cpp
index 3f21e6a758..106b32647c 100644
--- a/Source/Core/VideoBackends/Software/Src/DebugUtil.cpp
+++ b/Source/Core/VideoBackends/Software/Src/DebugUtil.cpp
@@ -57,6 +57,7 @@ void SaveTexture(const char* filename, u32 texmap, s32 mip)
GetTextureRGBA(data, texmap, mip, width, height);
(void)TextureToPng(data, width*4, filename, width, height, true);
+ delete[] data;
}
@@ -140,6 +141,7 @@ void DumpEfb(const char* filename)
}
(void)TextureToPng(data, EFB_WIDTH * 4, filename, EFB_WIDTH, EFB_HEIGHT, true);
+ delete[] data;
}
void DumpDepth(const char* filename)
@@ -161,6 +163,7 @@ void DumpDepth(const char* filename)
}
(void)TextureToPng(data, EFB_WIDTH * 4, filename, EFB_WIDTH, EFB_HEIGHT, true);
+ delete[] data;
}
void DrawObjectBuffer(s16 x, s16 y, u8 *color, int bufferBase, int subBuffer, const char *name)
@@ -241,6 +244,7 @@ void OnObjectEnd()
(void)TextureToPng((u8*)ObjectBuffer[i], EFB_WIDTH * 4, filename.c_str(), EFB_WIDTH, EFB_HEIGHT, true);
memset(ObjectBuffer[i], 0, sizeof(ObjectBuffer[i]));
+
}
}