aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_texture.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-03-24 15:06:19 +1000
committerDave Airlie <[email protected]>2009-03-24 15:06:19 +1000
commit20981c0a0bd43aff4972c1300f990b06dfa789d1 (patch)
tree98c13c131b920ddaa6e238b8d8dd47edd4c38a2a /src/mesa/drivers/dri/radeon/radeon_texture.c
parent0a725db10c1491539d48370df7207206538bf945 (diff)
radeon: fixup some issue with fbos and sw fallbacks
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_texture.c')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_texture.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c
index 63680b495c9..d212898acd8 100644
--- a/src/mesa/drivers/dri/radeon/radeon_texture.c
+++ b/src/mesa/drivers/dri/radeon/radeon_texture.c
@@ -139,9 +139,12 @@ void radeonMapTexture(GLcontext *ctx, struct gl_texture_object *texObj)
radeonTexObj* t = radeon_tex_obj(texObj);
int face, level;
+ if (!radeon_validate_texture_miptree(ctx, texObj))
+ return;
+
/* for r100 3D sw fallbacks don't have mt */
if (!t->mt)
- return;
+ return;
radeon_bo_map(t->mt->bo, GL_FALSE);
for(face = 0; face < t->mt->faces; ++face) {