mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
id, glhd: Fix malloc/calloc of struct.
( >&)
This commit is contained in:
parent
a6cc914874
commit
ee2c6d748d
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ identity_sampler_view_create(struct identity_context *id_context,
|
|||
|
||||
assert(view->texture == id_resource->resource);
|
||||
|
||||
id_view = MALLOC(sizeof(struct identity_sampler_view));
|
||||
id_view = CALLOC_STRUCT(identity_sampler_view);
|
||||
|
||||
id_view->base = *view;
|
||||
id_view->base.reference.count = 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue