diff options
author | Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 2009-03-13 15:47:18 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 2009-03-16 11:40:47 +0100 |
commit | cf25ef9072f5290d228a381727c4ff921b0c60d6 (patch) | |
tree | 6e8be9bcf952d395920d742ac3468896c52ffed8 /src/mesa/state_tracker/st_texture.c | |
parent | fc1ef97c3349588cd33a22dc88ab30b6f701000e (diff) |
gallium: Use struct pipe_atomic for pipe refcounts.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
Diffstat (limited to 'src/mesa/state_tracker/st_texture.c')
-rw-r--r-- | src/mesa/state_tracker/st_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c index 30b95bebab3..b9b5baed149 100644 --- a/src/mesa/state_tracker/st_texture.c +++ b/src/mesa/state_tracker/st_texture.c @@ -107,7 +107,7 @@ st_texture_create(struct st_context *st, newtex = screen->texture_create(screen, &pt); - assert(!newtex || newtex->reference.count == 1); + assert(!newtex || p_atomic_read(&newtex->reference.count) == 1); return newtex; } |