mesa: added _mesa_insert_instructions()

Also, use new _mesa_free_instructions() in a few places.

cherry-picked from gallium-0.1
This commit is contained in:
Brian Paul
2008-05-14 12:39:41 -06:00
parent 450136d368
commit 19ad9cf774
2 changed files with 52 additions and 10 deletions

View File

@@ -112,6 +112,8 @@ _mesa_reference_fragprog(GLcontext *ctx,
extern struct gl_program *
_mesa_clone_program(GLcontext *ctx, const struct gl_program *prog);
extern GLboolean
_mesa_insert_instructions(struct gl_program *prog, GLuint start, GLuint count);
/*
* API functions common to ARB/NV_vertex/fragment_program