From: Vinson Lee Date: Fri, 16 Jul 2010 06:45:25 +0000 (-0700) Subject: mesa: Add error path in compressed_texture_error_check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f9d7bb2425aee65e75667953a6cc304072f2b11;p=mesa.git mesa: Add error path in compressed_texture_error_check. Add error path for unhandled dimensions in compressed_texture_error_check. --- 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);