diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 16c819be7..321f335a1 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -39,6 +39,7 @@ Google Inc. Adobe Systems Inc. Alexandru Chiculita + Steve Minns Max Vujovic Autodesk, Inc. diff --git a/src/common/version.h b/src/common/version.h index 0ca75c677..67cbe5693 100644 --- a/src/common/version.h +++ b/src/common/version.h @@ -1,7 +1,7 @@ #define MAJOR_VERSION 1 #define MINOR_VERSION 0 #define BUILD_VERSION 0 -#define BUILD_REVISION 1274 +#define BUILD_REVISION 1275 #define STRINGIFY(x) #x #define MACRO_STRINGIFY(x) STRINGIFY(x) diff --git a/src/libGLESv2/Texture.cpp b/src/libGLESv2/Texture.cpp index 2d644f62f..85169e25e 100644 --- a/src/libGLESv2/Texture.cpp +++ b/src/libGLESv2/Texture.cpp @@ -1357,9 +1357,9 @@ GLint Texture::creationLevels(GLsizei size) const return creationLevels(size, size); } -int Texture::levelCount() const +int Texture::levelCount() { - return getBaseTexture() ? getBaseTexture()->GetLevelCount() : 0; + return getBaseTexture() ? getBaseTexture()->GetLevelCount() - getLodOffset() : 0; } Blit *Texture::getBlitter() diff --git a/src/libGLESv2/Texture.h b/src/libGLESv2/Texture.h index 6d67df7bc..29fcb1f99 100644 --- a/src/libGLESv2/Texture.h +++ b/src/libGLESv2/Texture.h @@ -227,7 +227,7 @@ class Texture : public RefCountObject virtual void convertToRenderTarget() = 0; virtual IDirect3DSurface9 *getRenderTarget(GLenum target) = 0; - int levelCount() const; + int levelCount(); static Blit *getBlitter(); static bool copyToRenderTarget(IDirect3DSurface9 *dest, IDirect3DSurface9 *source, bool fromManaged);