mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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:
parent
420400f67f
commit
560ad7e599
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue