mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
recommit e731d8aafa.
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.
This commit is contained in:
parent
ff65fa39e8
commit
9b9e056615
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue