aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/drivers/dri
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2014-09-08 23:30:36 +0200
committermarha <marha@users.sourceforge.net>2014-09-08 23:30:36 +0200
commite16399e57caac9e859a7d28921c73ef9839b571e (patch)
treeb86ed43f749ebfe0bb3842fcd76a34e386011fcc /mesalib/src/mesa/drivers/dri
parent166caebfaa2b217332a345ffb02c5b9e52f65a3d (diff)
parentcb346e228aeb500cd61ec86644c034c238332d3b (diff)
downloadvcxsrv-e16399e57caac9e859a7d28921c73ef9839b571e.tar.gz
vcxsrv-e16399e57caac9e859a7d28921c73ef9839b571e.tar.bz2
vcxsrv-e16399e57caac9e859a7d28921c73ef9839b571e.zip
Merge remote-tracking branch 'origin/released'
Diffstat (limited to 'mesalib/src/mesa/drivers/dri')
-rw-r--r--mesalib/src/mesa/drivers/dri/common/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/mesa/drivers/dri/common/utils.c b/mesalib/src/mesa/drivers/dri/common/utils.c
index e0b3db8cf..f2e63c0b9 100644
--- a/mesalib/src/mesa/drivers/dri/common/utils.c
+++ b/mesalib/src/mesa/drivers/dri/common/utils.c
@@ -238,7 +238,7 @@ driCreateConfigs(mesa_format format,
is_srgb = _mesa_get_format_color_encoding(format) == GL_SRGB;
num_modes = num_depth_stencil_bits * num_db_modes * num_accum_bits * num_msaa_modes;
- configs = calloc(1, (num_modes + 1) * sizeof *configs);
+ configs = calloc(num_modes + 1, sizeof *configs);
if (configs == NULL)
return NULL;