add debugging for compresssed textures

This commit is contained in:
Dave Airlie 2004-07-15 10:51:17 +00:00
parent c058917343
commit 84e6b16d8f
1 changed files with 7 additions and 0 deletions

View File

@ -617,6 +617,13 @@ static void intelUploadTexImage( intelContextPtr intel,
GLubyte *src = (GLubyte *)image->Data;
GLuint j;
if (INTEL_DEBUG & DEBUG_TEXTURE)
fprintf(stderr,
"Upload image %dx%dx%d offset %xm row_len %x "
"pitch %x depth_pitch %x\n",
image->Width, image->Height, image->Depth, offset,
row_len, t->Pitch, t->depth_pitch);
switch(image->IntFormat)
{
case GL_COMPRESSED_RGB_FXT1_3DFX: