mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
Check for null program->Parameters pointer in validate_vertex_program().
GL_NV_vertex_program programs can't directly reference GL state so this pointer is always NULL.
This commit is contained in:
parent
df0350b7ec
commit
d39760d718
1 changed files with 5 additions and 1 deletions
|
|
@ -1354,7 +1354,11 @@ validate_vertex_program( GLcontext *ctx, struct tnl_pipeline_stage *stage )
|
|||
*/
|
||||
m->File[FILE_LOCAL_PARAM] = program->Base.LocalParams;
|
||||
m->File[FILE_ENV_PARAM] = ctx->VertexProgram.Parameters;
|
||||
m->File[FILE_STATE_PARAM] = program->Parameters->ParameterValues;
|
||||
/* GL_NV_vertex_programs can't reference GL state */
|
||||
if (program->Parameters)
|
||||
m->File[FILE_STATE_PARAM] = program->Parameters->ParameterValues;
|
||||
else
|
||||
m->File[FILE_STATE_PARAM] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue