diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-02-22 02:03:42 +0100 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2010-02-25 18:37:36 +0100 |
commit | 323e6bbb052f37f91c7340e16c2352bb780a43d8 (patch) | |
tree | 3d201e2c1ee27fd3db41c5d42ac445f8d9b6bbf8 /src/mesa/drivers/dri/nouveau/nv20_state_tex.c | |
parent | 44602bb23ca7b67d4db586d9194c75cfe4a60962 (diff) |
dri/nouveau: Try to validate textures earlier.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv20_state_tex.c')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv20_state_tex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv20_state_tex.c b/src/mesa/drivers/dri/nouveau/nv20_state_tex.c index d01e91f8ee..2bf760d3b0 100644 --- a/src/mesa/drivers/dri/nouveau/nv20_state_tex.c +++ b/src/mesa/drivers/dri/nouveau/nv20_state_tex.c @@ -87,7 +87,8 @@ nv20_emit_tex_obj(GLcontext *ctx, int emit) s = &to_nouveau_texture(t)->surfaces[t->BaseLevel]; ti = t->Image[0][t->BaseLevel]; - nouveau_texture_validate(ctx, t); + if (!nouveau_texture_validate(ctx, t)) + return; /* Recompute the texturing registers. */ tx_format = ti->DepthLog2 << 28 |