temp debug hack
This commit is contained in:
@@ -1741,14 +1741,26 @@ unsigned RageDisplay_OGL::CreateTexture(
|
|||||||
img->w, img->h, 0,
|
img->w, img->h, 0,
|
||||||
glImageFormat, glImageType, img->pixels);
|
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();
|
GLenum error = glGetError();
|
||||||
if( error != GL_NO_ERROR )
|
if( error != GL_NO_ERROR )
|
||||||
{
|
{
|
||||||
ostringstream s;
|
ostringstream s;
|
||||||
s << "glTexImage2D(format " << GLToString(glTexFormat) <<
|
s << "glTexImage2D(format " << GLToString(glTexFormat) <<
|
||||||
", w " << img->w << ", h " << img->h <<
|
", " << img->w << "x" << img->h <<
|
||||||
", format " << GLToString(glImageFormat) <<
|
", format " << GLToString(glImageFormat) <<
|
||||||
", type " << GLToString(glImageType) <<
|
", type " << GLToString(glImageType) <<
|
||||||
|
", pixfmt " << pixfmt <<
|
||||||
|
", imgpixfmt " << imgpixfmt <<
|
||||||
"): " << GLToString(error);
|
"): " << GLToString(error);
|
||||||
LOG->Trace( s.str().c_str() );
|
LOG->Trace( s.str().c_str() );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user