From 04c94010340d9137705af15c88fb73eaae2c4fbf Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 31 Aug 2004 01:06:51 +0000 Subject: [PATCH] temp debug hack --- stepmania/src/RageDisplay_OGL.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index 0aef732706..3847bb11be 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -1741,14 +1741,26 @@ unsigned RageDisplay_OGL::CreateTexture( img->w, img->h, 0, glImageFormat, glImageType, img->pixels); + { + ostringstream s; + s << "glTexImage2D(format " << GLToString(glTexFormat) << + ", " << img->w << "x" << img->h << + ", format " << GLToString(glImageFormat) << + ", type " << GLToString(glImageType) << + ", pixfmt " << pixfmt << + ", imgpixfmt " << imgpixfmt; + LOG->Trace( s.str().c_str() ); + } GLenum error = glGetError(); if( error != GL_NO_ERROR ) { ostringstream s; s << "glTexImage2D(format " << GLToString(glTexFormat) << - ", w " << img->w << ", h " << img->h << + ", " << img->w << "x" << img->h << ", format " << GLToString(glImageFormat) << ", type " << GLToString(glImageType) << + ", pixfmt " << pixfmt << + ", imgpixfmt " << imgpixfmt << "): " << GLToString(error); LOG->Trace( s.str().c_str() );