mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 02:10:37 +02:00
nv50: fix typo in REALLOC's 2nd argument in ctor_immd
This commit is contained in:
parent
7069a7548f
commit
f1aa2a43b7
1 changed files with 1 additions and 1 deletions
|
|
@ -296,7 +296,7 @@ kill_temp_temp(struct nv50_pc *pc)
|
|||
static int
|
||||
ctor_immd(struct nv50_pc *pc, float x, float y, float z, float w)
|
||||
{
|
||||
pc->immd_buf = REALLOC(pc->immd_buf, (pc->immd_nr * r * sizeof(float)),
|
||||
pc->immd_buf = REALLOC(pc->immd_buf, (pc->immd_nr * 4 * sizeof(float)),
|
||||
(pc->immd_nr + 1) * 4 * sizeof(float));
|
||||
pc->immd_buf[(pc->immd_nr * 4) + 0] = x;
|
||||
pc->immd_buf[(pc->immd_nr * 4) + 1] = y;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue