diff options
author | Zack Rusin <[email protected]> | 2007-10-03 08:47:36 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2007-10-03 08:47:36 -0400 |
commit | 51345cb3c4d85a9e88ac35b59e938b0692df6205 (patch) | |
tree | 3d0ce611cb6fc43f4672426f9e459369c67ceb1c /src/mesa/pipe/softpipe/sp_state_rasterizer.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_rasterizer.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_state_rasterizer.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_rasterizer.c b/src/mesa/pipe/softpipe/sp_state_rasterizer.c index d7845cef826..076ea66d9e8 100644 --- a/src/mesa/pipe/softpipe/sp_state_rasterizer.c +++ b/src/mesa/pipe/softpipe/sp_state_rasterizer.c @@ -36,7 +36,10 @@ void * softpipe_create_rasterizer_state(struct pipe_context *pipe, const struct pipe_rasterizer_state *setup) { - return 0; + struct pipe_rasterizer_state *state = + malloc(sizeof(struct pipe_rasterizer_state)); + memcpy(state, setup, sizeof(struct pipe_rasterizer_state)); + return state; } void softpipe_bind_rasterizer_state(struct pipe_context *pipe, @@ -55,7 +58,7 @@ void softpipe_bind_rasterizer_state(struct pipe_context *pipe, void softpipe_delete_rasterizer_state(struct pipe_context *pipe, void *rasterizer) { - /* do nothing */ + free(rasterizer); } |