From 5f9d7bb2425aee65e75667953a6cc304072f2b11 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 15 Jul 2010 23:45:25 -0700 Subject: mesa: Add error path in compressed_texture_error_check. Add error path for unhandled dimensions in compressed_texture_error_check. --- src/mesa/main/teximage.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 50890a3c1e3..29b721d0bee 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -3205,6 +3205,10 @@ compressed_texture_error_check(GLcontext *ctx, GLint dimensions, /* 3D compressed textures not allowed */ return GL_INVALID_ENUM; } + else { + assert(0); + return GL_INVALID_ENUM; + } maxTextureSize = 1 << (maxLevels - 1); -- cgit v1.2.3