Make a virtual method Texture::mipLevels to return the value of mip levels defined as in the GL spec.

Also known as the "q" function.

TRAC #23961

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods

diff --git a/src/libGLESv2/Texture.h b/src/libGLESv2/Texture.h
index 3551b86..49acc54 100644
--- a/src/libGLESv2/Texture.h
+++ b/src/libGLESv2/Texture.h
@@ -125,6 +125,7 @@
     GLint creationLevels(GLsizei width, GLsizei height, GLsizei depth) const;
     GLint creationLevels(GLsizei width, GLsizei height) const;
     GLint creationLevels(GLsizei size) const;
+    int mipLevels() const;
 
     virtual void createTexture() = 0;
     virtual void updateTexture() = 0;