Fixed compile problems under VisualStudio w.r.t the new additions for
precompiled mipmaps. Changed std::size_t to unsigned int.
This commit is contained in:
parent
a9bf24cf71
commit
2f392b635c
@ -133,11 +133,11 @@ class SG_EXPORT Image : public Object
|
||||
static const unsigned int computeRowWidthInBytes(int width,GLenum format,GLenum type,int packing);
|
||||
|
||||
// precomputed mipmaps stuff;
|
||||
typedef std::vector< std::size_t > MipmapDataType;
|
||||
typedef std::vector< unsigned int > MipmapDataType;
|
||||
|
||||
inline bool isMipmap() const {return !_mipmapData.empty();};
|
||||
|
||||
std::size_t getNumMipmaps() const
|
||||
unsigned int getNumMipmaps() const
|
||||
{
|
||||
return _mipmapData.size()+1;
|
||||
};
|
||||
@ -149,7 +149,7 @@ class SG_EXPORT Image : public Object
|
||||
_mipmapData = mipmapDataVector;
|
||||
};
|
||||
|
||||
inline unsigned char* getMipmapData(std::size_t mipmapNumber ) const
|
||||
inline unsigned char* getMipmapData(unsigned int mipmapNumber) const
|
||||
{
|
||||
if(mipmapNumber == 0)
|
||||
return _data;
|
||||
|
Loading…
Reference in New Issue
Block a user