Commit 683e1d7e authored by hybrid's avatar hybrid

Set DebugName in all constructors

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2863 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 5cdb8fb1
...@@ -16,9 +16,6 @@ namespace video ...@@ -16,9 +16,6 @@ namespace video
CImage::CImage(ECOLOR_FORMAT format, const core::dimension2d<u32>& size) CImage::CImage(ECOLOR_FORMAT format, const core::dimension2d<u32>& size)
:Data(0), Size(size), Format(format), DeleteMemory(true) :Data(0), Size(size), Format(format), DeleteMemory(true)
{ {
#ifdef _DEBUG
setDebugName("CImage");
#endif
initData(); initData();
} }
...@@ -79,6 +76,9 @@ CImage::CImage(IImage* imageToCopy, const core::position2d<s32>& pos, ...@@ -79,6 +76,9 @@ CImage::CImage(IImage* imageToCopy, const core::position2d<s32>& pos,
//! assumes format and size has been set and creates the rest //! assumes format and size has been set and creates the rest
void CImage::initData() void CImage::initData()
{ {
#ifdef _DEBUG
setDebugName("CImage");
#endif
BytesPerPixel = getBitsPerPixelFromFormat(Format) / 8; BytesPerPixel = getBitsPerPixelFromFormat(Format) / 8;
// Pitch should be aligned... // Pitch should be aligned...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment