Remove _IsPowerOfTwo from gl_texture_object, not really needed.
This commit is contained in:
@@ -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) {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user