r300g: Do not use buf param before checking for NULL.

Commit 8dfafbf086 forgot to update r300g.
There is a buf == NULL check, but buf is used before for var init.

Tested-by: Guillermo S. Romero <gsromero@infernal-iceberg.com>
This commit is contained in:
Guillermo S. Romero 2010-11-03 22:14:00 +01:00 committed by Keith Whitwell
parent 420400f67f
commit 560ad7e599

View file

@ -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: