From: Brian Paul Date: Fri, 23 Mar 2012 14:16:32 +0000 (-0600) Subject: mesa: set numFaces=6 for cube maps in _mesa_test_texobj_completeness() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=281d0fd3a9cd2b4e97cdb58eb7854f9f90220fc7;p=mesa.git mesa: set numFaces=6 for cube maps in _mesa_test_texobj_completeness() Reviewed-by: José Fonseca --- diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index cfaac64bfd6..97bef3543c8 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -567,7 +567,8 @@ _mesa_test_texobj_completeness( const struct gl_context *ctx, GLint i; const GLint minLevel = baseLevel; const GLint maxLevel = t->_MaxLevel; - GLuint width, height, depth, face, numFaces = 1; + const GLuint numFaces = t->Target == GL_TEXTURE_CUBE_MAP ? 6 : 1; + GLuint width, height, depth, face; if (minLevel > maxLevel) { incomplete(t, BASE, "minLevel > maxLevel");