diff options
Diffstat (limited to 'src/gallium/state_trackers/nine/basetexture9.h')
-rw-r--r-- | src/gallium/state_trackers/nine/basetexture9.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/basetexture9.h b/src/gallium/state_trackers/nine/basetexture9.h index 19899c65825..7c6f66907b3 100644 --- a/src/gallium/state_trackers/nine/basetexture9.h +++ b/src/gallium/state_trackers/nine/basetexture9.h @@ -144,8 +144,11 @@ NineBindTextureToDevice( struct NineDevice9 *device, tex->bind_count++; } - if (old) + if (old) { old->bind_count--; + if (!old->bind_count) + list_delinit(&old->list); + } nine_bind(slot, tex); } |