diff options
author | michal <[email protected]> | 2009-03-16 06:48:25 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-03-16 08:18:06 +0100 |
commit | 54942518905edfdf41233dd4d34b77637e7d9b25 (patch) | |
tree | f1dbebb74d65cf73574f57b84a488fde7d3c8911 | |
parent | 38b074495a9f03057c40b814b65d0ca5af6118a4 (diff) |
python: Do not pass shader_state to util shader functions.
-rw-r--r-- | src/gallium/state_trackers/python/st_device.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gallium/state_trackers/python/st_device.c b/src/gallium/state_trackers/python/st_device.c index 3fe739090dc..366d4eb19af 100644 --- a/src/gallium/state_trackers/python/st_device.c +++ b/src/gallium/state_trackers/python/st_device.c @@ -273,24 +273,19 @@ st_context_create(struct st_device *st_dev) /* vertex shader */ { - struct pipe_shader_state vert_shader; - const uint semantic_names[] = { TGSI_SEMANTIC_POSITION, TGSI_SEMANTIC_GENERIC }; const uint semantic_indexes[] = { 0, 0 }; st_ctx->vs = util_make_vertex_passthrough_shader(st_ctx->pipe, 2, semantic_names, - semantic_indexes, - &vert_shader); + semantic_indexes); cso_set_vertex_shader_handle(st_ctx->cso, st_ctx->vs); } /* fragment shader */ { - struct pipe_shader_state frag_shader; - st_ctx->fs = util_make_fragment_passthrough_shader(st_ctx->pipe, - &frag_shader); + st_ctx->fs = util_make_fragment_passthrough_shader(st_ctx->pipe); cso_set_fragment_shader_handle(st_ctx->cso, st_ctx->fs); } |