diff --git a/indra/newview/llglsandbox.cpp b/indra/newview/llglsandbox.cpp
index 83cabf7d5518086382a6ac54a6b5b5d9bdb6d88f..c4c18272663398ad6f56627cf9b17d8c0cdef7f2 100755
--- a/indra/newview/llglsandbox.cpp
+++ b/indra/newview/llglsandbox.cpp
@@ -904,7 +904,7 @@ void gpu_benchmark()
 
 	LLRenderTarget dest[count];
 	U32 source[count];
-	LLImageGL::generateTextures(LLTexUnit::TT_TEXTURE, GL_RGBA, count, source);
+	LLImageGL::generateTextures(count, source);
 	std::vector<F32> results;
 
 	//build a random texture
@@ -983,7 +983,7 @@ void gpu_benchmark()
 
 	LLGLSLShader::finishProfile();
 	
-	LLImageGL::deleteTextures(LLTexUnit::TT_TEXTURE, GL_RGBA, 0, count, source);
+	LLImageGL::deleteTextures(count, source);
 
 
 	std::sort(results.begin(), results.end());