Fixed compilation error from last commit

Fixed NzImage::GetWidth/Height/Depth returning 0 when level > image's
max level
This commit is contained in:
Lynix
2012-05-30 19:21:20 +02:00
parent b220e00c88
commit 3720967802
2 changed files with 7 additions and 7 deletions

View File

@@ -122,7 +122,7 @@ class NAZARA_API NzImage : public NzResource, public NzResourceLoader<NzImage, N
{
}
SharedImage(unsigned short RefCount, nzImageType Type, nzPixelFormat Format, nzInt8 LevelCount = 1, nzUInt8** Pixels = nullptr, unsigned int Width = 1, unsigned int Height = 1, unsigned int Depth = 1) :
SharedImage(unsigned short RefCount, nzImageType Type, nzPixelFormat Format, nzUInt8 LevelCount = 1, nzUInt8** Pixels = nullptr, unsigned int Width = 1, unsigned int Height = 1, unsigned int Depth = 1) :
type(Type),
format(Format),
levelCount(LevelCount),