diff options
author | Axel Davy <[email protected]> | 2016-11-06 12:05:50 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:23 +0100 |
commit | 804b28cdc461043bba18f1b2b914ef61b9773192 (patch) | |
tree | a15dbfe395583eb88ede0c868136d5c3089211ab /src/gallium/state_trackers/nine/device9.c | |
parent | fef23f6712064416f02211f1517e387169735e0b (diff) |
st/nine: Simplify the logic to bind textures
This makes the code more readable.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/device9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 5b720cc06dd..101761f0816 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -2486,19 +2486,10 @@ NineDevice9_SetTexture( struct NineDevice9 *This, if (old == tex) return D3D_OK; - if (tex) { - if ((tex->managed.dirty | tex->dirty_mip) && LIST_IS_EMPTY(&tex->list)) - list_add(&tex->list, &This->update_textures); - - tex->bind_count++; - } - if (old) - old->bind_count--; + NineBindTextureToDevice(This, &state->texture[Stage], tex); nine_context_set_texture(This, Stage, tex); - nine_bind(&state->texture[Stage], pTexture); - return D3D_OK; } |