diff options
Diffstat (limited to 'src/mesa/pipe/nv40/nv40_state.c')
-rw-r--r-- | src/mesa/pipe/nv40/nv40_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/pipe/nv40/nv40_state.c b/src/mesa/pipe/nv40/nv40_state.c index bcd244528d..713f31dbb1 100644 --- a/src/mesa/pipe/nv40/nv40_state.c +++ b/src/mesa/pipe/nv40/nv40_state.c @@ -112,7 +112,7 @@ nv40_sampler_state_create(struct pipe_context *pipe, struct nv40_sampler_state *ps; uint32_t filter = 0; - ps = malloc(sizeof(struct nv40_sampler_state)); + ps = MALLOC(sizeof(struct nv40_sampler_state)); ps->fmt = 0; if (!cso->normalized_coords) @@ -455,7 +455,7 @@ nv40_vp_state_create(struct pipe_context *pipe, { struct nv40_vertex_program *vp; - vp = calloc(1, sizeof(struct nv40_vertex_program)); + vp = CALLOC(1, sizeof(struct nv40_vertex_program)); vp->pipe = cso; return (void *)vp; @@ -487,7 +487,7 @@ nv40_fp_state_create(struct pipe_context *pipe, { struct nv40_fragment_program *fp; - fp = calloc(1, sizeof(struct nv40_fragment_program)); + fp = CALLOC(1, sizeof(struct nv40_fragment_program)); fp->pipe = cso; return (void *)fp; |