mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
mesa/main: Fix memset in formatquery.c
v2: We explicitly set each member to -1 over using a confusing memset(). Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
515165ff0e
commit
f9387a223d
1 changed files with 2 additions and 1 deletions
|
|
@ -1564,7 +1564,8 @@ _mesa_GetInternalformati64v(GLenum target, GLenum internalformat,
|
|||
* no pname can return a negative value, we fill params32 with negative
|
||||
* values as reference values, that can be used to know what copy-back to
|
||||
* params */
|
||||
memset(params32, -1, 16);
|
||||
for (i = 0; i < realSize; i++)
|
||||
params32[i] = -1;
|
||||
|
||||
/* For GL_MAX_COMBINED_DIMENSIONS we need to get back 2 32-bit integers,
|
||||
* and at the same time we only need 2. So for that pname, we call the
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue