summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/galahad
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/galahad')
-rw-r--r--src/gallium/drivers/galahad/glhd_objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/galahad/glhd_objects.c b/src/gallium/drivers/galahad/glhd_objects.c
index 4682d717d8..c9680d13e1 100644
--- a/src/gallium/drivers/galahad/glhd_objects.c
+++ b/src/gallium/drivers/galahad/glhd_objects.c
@@ -120,7 +120,7 @@ galahad_sampler_view_create(struct galahad_context *glhd_context,
assert(view->texture == glhd_resource->resource);
- glhd_view = MALLOC(sizeof(struct galahad_sampler_view));
+ glhd_view = CALLOC_STRUCT(galahad_sampler_view);
glhd_view->base = *view;
glhd_view->base.reference.count = 1;