mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 15:30:50 +00:00
[ruamoko] Avoid copying a block of memory to itself
Not a big deal, but valgrind didn't like it.
This commit is contained in:
parent
9317ce7358
commit
451a98d391
1 changed files with 4 additions and 2 deletions
|
@ -313,8 +313,10 @@ generate_colormap (void)
|
|||
}
|
||||
}
|
||||
}
|
||||
// fullbrights
|
||||
memcpy (colors[i][224], colors[31][224], 32 * 3);
|
||||
// fullbrights, but avoid copying the source row to itself
|
||||
if (i != 31) {
|
||||
memcpy (colors[i][224], colors[31][224], 32 * 3);
|
||||
}
|
||||
}
|
||||
tex_t *cmap = ConvertImage (&tex, default_palette[0]);
|
||||
// the colormap has an extra byte indicating the number of fullbright
|
||||
|
|
Loading…
Reference in a new issue