[Piglit] [PATCH 11/17] glean: Remove unused method Image::makeMipmaps

Ian Romanick idr at freedesktop.org
Tue Sep 22 08:36:36 PDT 2015


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 tests/glean/gl.cpp  | 15 ---------------
 tests/glean/image.h |  1 -
 2 files changed, 16 deletions(-)

diff --git a/tests/glean/gl.cpp b/tests/glean/gl.cpp
index 89ca4ae..3191a04 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 3c6d62c..ec1fd6f 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
 
-- 
2.1.0



More information about the Piglit mailing list