aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMaciej Cencora <[email protected]>2009-11-14 18:11:16 +0100
committerMaciej Cencora <[email protected]>2009-11-14 18:11:16 +0100
commitad83aeccdc54beecf25f217e2dd24c8edf6d6767 (patch)
tree5521039355dc952bd6d1be2a1f7d2d1930938438 /src/mesa/drivers
parent23ec7c457483aae1e0d399e9b570f1860c27c780 (diff)
radeon: return false on texture validation if texture isn't complete
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c
index f01136b9d41..0497fa7db50 100644
--- a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c
+++ b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c
@@ -34,7 +34,6 @@
#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"
@@ -547,9 +546,10 @@ int radeon_validate_texture_miptree(GLcontext * ctx, struct gl_texture_object *t
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);