diff options
| author | Roland Scheidegger <sroland@tungstengraphics.com> | 2007-03-27 19:32:32 +0200 | 
|---|---|---|
| committer | Roland Scheidegger <sroland@tungstengraphics.com> | 2007-03-27 19:33:34 +0200 | 
| commit | 9b9e056615bc63d5498feb6999bd4df431170022 (patch) | |
| tree | a31517e76588beed9a8f8f0e14b58f602a72df6e /src | |
| parent | ff65fa39e81114fd54c94cb8be235342911c185e (diff) | |
recommit e731d8aafa98bbf9d30f83e65f28b7718be55834.
This got lost with glsl-compiler-1 merge, it fixes segfaults when using
ATI_fragment_shader, which uses the ProgramStringNotify mechanism but doesn't
have a valid program pointer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mesa/tnl/t_vb_arbprogram.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c index 425a866994..f0e326f25c 100644 --- a/src/mesa/tnl/t_vb_arbprogram.c +++ b/src/mesa/tnl/t_vb_arbprogram.c @@ -1608,7 +1608,7 @@ const struct tnl_pipeline_stage _tnl_arb_vertex_program_stage =  void  _tnl_program_string(GLcontext *ctx, GLenum target, struct gl_program *program)  { -   if (program->Target == GL_VERTEX_PROGRAM_ARB) { +   if (target == GL_VERTEX_PROGRAM_ARB) {        /* free any existing tnl data hanging off the program */        struct gl_vertex_program *vprog = (struct gl_vertex_program *) program;        if (vprog->TnlData) { | 
