From 2f392b635c4b6e3df475e8a7dab9099c607ad642 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 23 Apr 2002 10:34:20 +0000 Subject: [PATCH] Fixed compile problems under VisualStudio w.r.t the new additions for precompiled mipmaps. Changed std::size_t to unsigned int. --- include/osg/Image | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/osg/Image b/include/osg/Image index 339d4ae75..610cc6403 100644 --- a/include/osg/Image +++ b/include/osg/Image @@ -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;