diff options
author | Michal Krol <[email protected]> | 2009-03-17 10:43:04 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-03-17 10:43:04 +0100 |
commit | 709b3128f3c3e9a0a52d79cc82a0cb9feb195dc1 (patch) | |
tree | c49654ed57647ddc82f6e65d5ef5df4616d2de92 /src/gallium | |
parent | 7b0c459bb495a89520be499a8ecc5bdd4e4c39a5 (diff) |
python: Fix build after refcount rework.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/python/p_texture.i | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/python/p_texture.i b/src/gallium/state_trackers/python/p_texture.i index 9396522961e..1e64fc8e41f 100644 --- a/src/gallium/state_trackers/python/p_texture.i +++ b/src/gallium/state_trackers/python/p_texture.i @@ -225,7 +225,7 @@ struct st_buffer { unsigned __len__(void) { - assert($self->buffer->refcount); + assert(p_atomic_read(&$self->buffer->reference.count) > 0); return $self->buffer->size; } @@ -235,7 +235,7 @@ struct st_buffer { struct pipe_screen *screen = $self->st_dev->screen; const char *map; - assert($self->buffer->refcount); + assert(p_atomic_read(&$self->buffer->reference.count) > 0); *LENGTH = $self->buffer->size; *STRING = (char *) malloc($self->buffer->size); @@ -255,7 +255,7 @@ struct st_buffer { struct pipe_screen *screen = $self->st_dev->screen; char *map; - assert($self->buffer->refcount); + assert(p_atomic_read(&$self->buffer->reference.count) > 0); if(offset > $self->buffer->size) { PyErr_SetString(PyExc_ValueError, "offset must be smaller than buffer size"); |