From: Eric Anholt Date: Tue, 13 Nov 2012 20:45:19 +0000 (-0800) Subject: mesa: Also handle GL_TEXTURE_EXTENRAL_OES in max num levels. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02652eaa25f1114b16762cac7a49f210a8c41c19;p=mesa.git mesa: Also handle GL_TEXTURE_EXTENRAL_OES in max num levels. Reviewed-by: Chad Versace --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 0850ef1110c..7d5a574e46b 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1056,6 +1056,7 @@ _mesa_get_tex_max_num_levels(GLenum target, GLsizei width, GLsizei height, size = MAX3(width, height, depth); break; case GL_TEXTURE_RECTANGLE: + case GL_TEXTURE_EXTERNAL_OES: return 1; default: assert(0);