mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-16 11:30:20 +01:00
mesa: set numFaces=6 for cube maps in _mesa_test_texobj_completeness()
Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
8d9decb75f
commit
281d0fd3a9
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue