diff options
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 5b02cfd90cd..758fb40fea4 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -1848,8 +1848,8 @@ static void r300_set_constant_buffer(struct pipe_context *pipe, else { struct r300_resource *rbuf = r300_resource(cb->buffer); - if (rbuf && rbuf->constant_buffer) - mapped = (uint32_t*)rbuf->constant_buffer; + if (rbuf && rbuf->malloced_buffer) + mapped = (uint32_t*)rbuf->malloced_buffer; else return; } |