#include "main/simple_list.h"
#include "main/texcompress.h"
#include "main/teximage.h"
-/* TODO: remove if texture completeness check is removed */
#include "main/texobj.h"
#include "radeon_texture.h"
if (texObj->Image[0][texObj->BaseLevel]->Border > 0)
return GL_FALSE;
- /* TODO: is this really necessary? */
_mesa_test_texobj_completeness(rmesa->glCtx, texObj);
- assert(texObj->_Complete);
+ if (!texObj->_Complete) {
+ return GL_FALSE;
+ }
calculate_min_max_lod(&t->base, &t->minLod, &t->maxLod);