aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2013-01-11 00:23:41 -0800
committerVinson Lee <vlee@freedesktop.org>2013-01-15 23:08:15 -0800
commit321c0f467179b8e410d8b74d3805f900045f487d (patch)
tree8f4e8578fdfc495a41a319acaf8951ac49c32258
parent67f5ae3cfdb511259dc0bf580e37efb7bb4bcc42 (diff)
texelFetch: Fix incorrect sizeof.
Fixes sizeof not portable defect reported by Coverity. Fixes allocator sizeof operand mismatch bug reported by Clang Static Analyzer. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--tests/texturing/shaders/texelFetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/texturing/shaders/texelFetch.c b/tests/texturing/shaders/texelFetch.c
index 78a4162a..50e91a6a 100644
--- a/tests/texturing/shaders/texelFetch.c
+++ b/tests/texturing/shaders/texelFetch.c
@@ -297,7 +297,7 @@ generate_texture()
expected_colors = calloc(miplevels, sizeof(float **));
for (l = 0; l < miplevels; l++) {
- expected_colors[l] = calloc(level_size[l][2], sizeof(float **));
+ expected_colors[l] = calloc(level_size[l][2], sizeof(float *));
i_ptr = i_level =
malloc(level_size[l][0] * level_size[l][1] *