diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2015-09-21 17:01:12 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2015-09-29 14:33:56 -0700 |
commit | 9be2ce862e4edc3c6eae3efcaf6def1b52f77e73 (patch) | |
tree | 4a19529ce67f25908c36a84266c36ae1c857a084 | |
parent | 2d7c24d95f228bed757b603ad4868e0a1c36bd56 (diff) |
glean: Remove unused method Image::makeMipmaps
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
-rw-r--r-- | tests/glean/gl.cpp | 15 | ||||
-rw-r--r-- | tests/glean/image.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/tests/glean/gl.cpp b/tests/glean/gl.cpp index 89ca4ae9a..3191a041f 100644 --- a/tests/glean/gl.cpp +++ b/tests/glean/gl.cpp @@ -64,19 +64,4 @@ Image::read(GLint x, GLint y) { glReadPixels(x, y, width(), height(), format(), type(), pixels()); } // Image::read -/////////////////////////////////////////////////////////////////////////////// -// makeMipmaps - generate and load mipmaps for texturing -/////////////////////////////////////////////////////////////////////////////// -void -Image::makeMipmaps(GLenum internalFormat) { - glPixelStorei(GL_UNPACK_SWAP_BYTES, GL_FALSE); - glPixelStorei(GL_UNPACK_LSB_FIRST, GL_FALSE); - glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); - glPixelStorei(GL_UNPACK_SKIP_ROWS, 0); - glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0); - glPixelStorei(GL_UNPACK_ALIGNMENT, alignment()); - gluBuild2DMipmaps(GL_TEXTURE_2D, internalFormat, width(), height(), - format(), type(), pixels()); -} // Image::makeMipmaps - }; // namespace GLEAN diff --git a/tests/glean/image.h b/tests/glean/image.h index 3c6d62c69..ec1fd6f98 100644 --- a/tests/glean/image.h +++ b/tests/glean/image.h @@ -230,7 +230,6 @@ class Image { void draw(); // Invoke glDrawPixels. void read(GLint x, GLint y); // Invoke glReadPixels. - void makeMipmaps(GLenum intFormat); // Load texture mipmaps. }; // class Image |