Rename variable mips to mip to fix compilation on mips64

Based on the patch from Debian
pull/3/head
Hleb Valoshka 2019-07-19 23:09:39 +03:00
parent f8d3815a70
commit f0c568dbf3
2 changed files with 3 additions and 3 deletions

View File

@ -90,10 +90,10 @@ static int calcMipLevelSize(int fmt, int w, int h, int mip)
}
Image::Image(int fmt, int w, int h, int mips) :
Image::Image(int fmt, int w, int h, int mip) :
width(w),
height(h),
mipLevels(mips),
mipLevels(mip),
format(fmt)
{
components = formatComponents(fmt);

View File

@ -21,7 +21,7 @@
class Image
{
public:
Image(int fmt, int w, int h, int mips = 1);
Image(int fmt, int w, int h, int mip = 1);
~Image();
int getWidth() const;