Rename variable mips to mip to fix compilation on mips64
Based on the patch from Debianpull/3/head
parent
f8d3815a70
commit
f0c568dbf3
|
@ -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),
|
width(w),
|
||||||
height(h),
|
height(h),
|
||||||
mipLevels(mips),
|
mipLevels(mip),
|
||||||
format(fmt)
|
format(fmt)
|
||||||
{
|
{
|
||||||
components = formatComponents(fmt);
|
components = formatComponents(fmt);
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
class Image
|
class Image
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Image(int fmt, int w, int h, int mips = 1);
|
Image(int fmt, int w, int h, int mip = 1);
|
||||||
~Image();
|
~Image();
|
||||||
|
|
||||||
int getWidth() const;
|
int getWidth() const;
|
||||||
|
|
Loading…
Reference in New Issue