summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2004-07-15 08:41:26 +0000
committerDave Airlie <airliedfreedesktop.org>2004-07-15 08:41:26 +0000
commit620c998b165da6b26b61b6f750bf97339798e48c (patch)
treed8587d25fed440ed6b8aba63902bb19b1c4cc023 /src
parent11a03a18addacb2c893786830331029e7ab79f93 (diff)
use a switch statement makes integrating the s3tc patch easier
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i915/intel_tex.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_tex.c b/src/mesa/drivers/dri/i915/intel_tex.c
index 6475950585..42505725e8 100644
--- a/src/mesa/drivers/dri/i915/intel_tex.c
+++ b/src/mesa/drivers/dri/i915/intel_tex.c
@@ -617,12 +617,18 @@ static void intelUploadTexImage( intelContextPtr intel,
GLubyte *src = (GLubyte *)image->Data;
GLuint j;
- if ((image->IntFormat == GL_COMPRESSED_RGB_FXT1_3DFX || image->IntFormat == GL_COMPRESSED_RGBA_FXT1_3DFX))
+ switch(image->IntFormat)
{
+ case GL_COMPRESSED_RGB_FXT1_3DFX:
+ case GL_COMPRESSED_RGBA_FXT1_3DFX:
for (j = 0 ; j < image->Height/4 ; j++, dst += (t->Pitch)) {
__memcpy(dst, src, row_len );
src += row_len;
}
+ break;
+ default:
+ fprintf(stderr,"Internal Compressed format not supported %d\n", image->IntFormat);
+ break;
}
}
else {