diff options
author | Zack Rusin <zack@tungstengraphics.com> | 2007-10-03 08:47:36 -0400 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2007-10-03 08:47:36 -0400 |
commit | 51345cb3c4d85a9e88ac35b59e938b0692df6205 (patch) | |
tree | 3d0ce611cb6fc43f4672426f9e459369c67ceb1c /src/mesa/pipe/softpipe/sp_state_sampler.c | |
parent | 4b6cc36b2b4892c3ce0862789c3b294c52356805 (diff) |
Make softpipe behave more like a real driver by always allocating something
in the state functions.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state_sampler.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_state_sampler.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_sampler.c b/src/mesa/pipe/softpipe/sp_state_sampler.c index ad98375735..4084e9163f 100644 --- a/src/mesa/pipe/softpipe/sp_state_sampler.c +++ b/src/mesa/pipe/softpipe/sp_state_sampler.c @@ -36,7 +36,9 @@ void * softpipe_create_sampler_state(struct pipe_context *pipe, const struct pipe_sampler_state *sampler) { - return 0; + struct pipe_sampler_state *state = malloc(sizeof(struct pipe_sampler_state)); + memcpy(state, sampler, sizeof(struct pipe_sampler_state)); + return state; } void @@ -56,7 +58,7 @@ void softpipe_delete_sampler_state(struct pipe_context *pipe, void *sampler) { - /* do nothing */ + free(sampler); } |