diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-03-24 22:33:03 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-03-24 22:33:03 +0000 |
commit | 068062f997c1fe17ca23464ed49594fddcad8baa (patch) | |
tree | 6c567afbbfe5a9bc7edee7d5198576c4d6b3962c | |
parent | c62af8e3b772ea9b4359430920bf58de882c3933 (diff) |
better switch cases
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_tex_layout.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_tex_layout.c b/src/mesa/drivers/dri/i915/i915_tex_layout.c index b3c7b33354..3f263597b0 100644 --- a/src/mesa/drivers/dri/i915/i915_tex_layout.c +++ b/src/mesa/drivers/dri/i915/i915_tex_layout.c @@ -281,7 +281,9 @@ GLboolean i945_miptree_layout( struct intel_mipmap_tree *mt ) break; } - default: { + case GL_TEXTURE_1D: + case GL_TEXTURE_2D: + case GL_TEXTURE_RECTANGLE_ARB: { GLuint x = 0; GLuint y = 0; GLuint width = mt->width0; @@ -321,7 +323,10 @@ GLboolean i945_miptree_layout( struct intel_mipmap_tree *mt ) } break; } + default: + _mesa_problem(NULL, "Unexpected tex target in i945_miptree_layout()"); } + DBG("%s: %dx%dx%d - sz 0x%x\n", __FUNCTION__, mt->pitch, mt->total_height, |