mesa: set numFaces=6 for cube maps in _mesa_test_texobj_completeness()
Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user