summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorGuillermo S. Romero <[email protected]>2010-11-03 22:14:00 +0100
committerKeith Whitwell <[email protected]>2010-11-04 13:26:24 +0000
commit560ad7e59940423a696e93e62ec3c41b1e553421 (patch)
tree91fea8ff3d2ecfea9e3ecd5ec837e3a51eb58d34 /src/gallium/drivers
parent420400f67fce15512a8fcab770dde83a3eacc5cc (diff)
r300g: Do not use buf param before checking for NULL.
Commit 8dfafbf0861fe3d2542332658dd5493851053c78 forgot to update r300g. There is a buf == NULL check, but buf is used before for var init. Tested-by: Guillermo S. Romero <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r300/r300_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index f2479a994c8..f513f87ca41 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -1789,7 +1789,7 @@ static void r300_set_constant_buffer(struct pipe_context *pipe,
{
struct r300_context* r300 = r300_context(pipe);
struct r300_constant_buffer *cbuf;
- uint32_t *mapped = r300_buffer(buf)->user_buffer;
+ uint32_t *mapped;
switch (shader) {
case PIPE_SHADER_VERTEX: