Removed log2 and replaced the places where is was used with a new Image::computeNumberOfMipmapLevels method.
This commit is contained in:
@@ -234,6 +234,7 @@ class OSG_EXPORT Image : public Object
|
||||
static unsigned int computePixelSizeInBits(GLenum pixelFormat,GLenum type);
|
||||
static unsigned int computeRowWidthInBytes(int width,GLenum pixelFormat,GLenum type,int packing);
|
||||
static int computeNearestPowerOfTwo(int s,float bias=0.5f);
|
||||
static int computeNumberOfMipmapLevels(int s,int t = 1, int r = 1);
|
||||
|
||||
/** Precomputed mipmaps stuff. */
|
||||
typedef std::vector< unsigned int > MipmapDataType;
|
||||
|
||||
Reference in New Issue
Block a user