mesa: Also handle GL_TEXTURE_EXTENRAL_OES in max num levels.
authorEric Anholt <eric@anholt.net>
Tue, 13 Nov 2012 20:45:19 +0000 (12:45 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 17 Nov 2012 20:55:54 +0000 (12:55 -0800)
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/main/teximage.c

index 0850ef1110c71986fb5000a04635dd3859ce3e62..7d5a574e46b2527a7749580077d25781c6a51ebd 100644 (file)
@@ -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);