[Mesa-dev] [PATCH 1/2] mesa: Also handle GL_TEXTURE_EXTENRAL_OES in max num levels.

Eric Anholt eric at anholt.net
Tue Nov 13 13:04:40 PST 2012


---
 src/mesa/main/teximage.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 0850ef1..7d5a574 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);
-- 
1.7.10.4



More information about the mesa-dev mailing list