Remove _IsPowerOfTwo from gl_texture_object, not really needed.

This commit is contained in:
Brian Paul
2005-10-05 04:07:50 +00:00
parent 198a88923c
commit 06f606ce57
4 changed files with 24 additions and 32 deletions

View File

@@ -201,7 +201,6 @@ _mesa_copy_texture_object( struct gl_texture_object *dest,
dest->GenerateMipmap = src->GenerateMipmap;
dest->Palette = src->Palette;
dest->Complete = src->Complete;
dest->_IsPowerOfTwo = src->_IsPowerOfTwo;
}
@@ -244,7 +243,6 @@ _mesa_test_texobj_completeness( const GLcontext *ctx,
GLint maxLog2 = 0, maxLevels = 0;
t->Complete = GL_TRUE; /* be optimistic */
t->_IsPowerOfTwo = GL_TRUE; /* may be set FALSE below */
/* Always need the base level image */
if (!t->Image[0][baseLevel]) {
@@ -320,11 +318,6 @@ _mesa_test_texobj_completeness( const GLcontext *ctx,
}
}
/* check for non power of two */
if (!t->Image[0][baseLevel]->_IsPowerOfTwo) {
t->_IsPowerOfTwo = GL_FALSE;
}
/* extra checking for mipmaps */
if (t->MinFilter != GL_NEAREST && t->MinFilter != GL_LINEAR) {
/*