glsl2: Use Mesa's gl_shader_program instead of our own struct glsl_program.

This avoids more allocation and shuffling of data around.
This commit is contained in:
Eric Anholt
2010-06-30 11:49:17 -07:00
parent 0eda9ae0a6
commit 849e18153c
6 changed files with 36 additions and 66 deletions
+2 -2
View File
@@ -206,9 +206,9 @@ main(int argc, char **argv)
if (argc <= optind)
usage_fail(argv[0]);
struct glsl_program *whole_program;
struct gl_shader_program *whole_program;
whole_program = talloc_zero (NULL, struct glsl_program);
whole_program = talloc_zero (NULL, struct gl_shader_program);
assert(whole_program != NULL);
for (/* empty */; argc > optind; optind++) {