commit | 0478b745fe72360ce91988636b54f6e4834c1fae | [log] [tgz] |
---|---|---|
author | Brian Paul <brianp@vmware.com> | Fri Dec 18 11:57:15 2009 -0700 |
committer | Brian Paul <brianp@vmware.com> | Fri Dec 18 11:57:17 2009 -0700 |
tree | 3c5dd2e5f767f15176365d2c2e4a8218c4d99e96 | |
parent | 20ee275974a58cd221031d522ad58a9548af2a31 [diff] |
glsl: clear out shader code before compiling When we start compiling a shader, first free the existing gl_program. This (mostly) fixes the piglit glsl-reload-source test. Without this change, we were actually appending the new GPU code onto the previous program.