diff options
author | Christian König <[email protected]> | 2011-01-12 00:48:10 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2011-01-12 00:48:10 +0100 |
commit | a96fe679e2f57e8e4e26c38660d8b6e5b67d5b4b (patch) | |
tree | d106cfea4baa1a9071b42d0e9bc922fad7502ed5 /src/gallium/drivers/nvfx | |
parent | 7965e2fc16853ae0ed0a9cde77346c25feb19b6e (diff) | |
parent | cc0f604241ee7b536f4c9867573024b8673b0998 (diff) |
Merge remote branch 'origin/master' into pipe-video
Conflicts:
src/gallium/drivers/r600/r600_shader.c
Diffstat (limited to 'src/gallium/drivers/nvfx')
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_state.c b/src/gallium/drivers/nvfx/nvfx_state.c index 54619037d82..f3dcb205c61 100644 --- a/src/gallium/drivers/nvfx/nvfx_state.c +++ b/src/gallium/drivers/nvfx/nvfx_state.c @@ -304,7 +304,7 @@ nvfx_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index, { struct nvfx_context *nvfx = nvfx_context(pipe); - nvfx->constbuf[shader] = buf; + pipe_resource_reference(&nvfx->constbuf[shader], buf); nvfx->constbuf_nr[shader] = buf ? (buf->width0 / (4 * sizeof(float))) : 0; if (shader == PIPE_SHADER_VERTEX) { |