gallium: return pipe_shader_state from the simple shader functions

Allows us to fix a mem leak (tokens array).
This commit is contained in:
Brian
2008-03-27 15:42:09 -06:00
parent 89222ee49d
commit dccbfd8bf0
4 changed files with 42 additions and 19 deletions

View File

@@ -34,6 +34,7 @@
struct pipe_context;
struct pipe_shader_state;
#ifdef __cplusplus
@@ -45,15 +46,18 @@ extern void *
util_make_vertex_passthrough_shader(struct pipe_context *pipe,
uint num_attribs,
const uint *semantic_names,
const uint *semantic_indexes);
const uint *semantic_indexes,
struct pipe_shader_state *shader);
extern void *
util_make_fragment_tex_shader(struct pipe_context *pipe);
util_make_fragment_tex_shader(struct pipe_context *pipe,
struct pipe_shader_state *shader);
extern void *
util_make_fragment_passthrough_shader(struct pipe_context *pipe);
util_make_fragment_passthrough_shader(struct pipe_context *pipe,
struct pipe_shader_state *shader);
#ifdef __cplusplus