mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
check for null program ptrs in _mesa_uniform()
This commit is contained in:
parent
55821d021d
commit
cec81eef31
1 changed files with 4 additions and 2 deletions
|
|
@ -961,8 +961,10 @@ _mesa_uniform(GLcontext *ctx, GLint location, GLsizei count,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shProg->Uniforms->Parameters[location].Type == PROGRAM_SAMPLER) {
|
if (shProg->Uniforms->Parameters[location].Type == PROGRAM_SAMPLER) {
|
||||||
_slang_resolve_samplers(shProg, &shProg->VertexProgram->Base);
|
if (shProg->VertexProgram)
|
||||||
_slang_resolve_samplers(shProg, &shProg->FragmentProgram->Base);
|
_slang_resolve_samplers(shProg, &shProg->VertexProgram->Base);
|
||||||
|
if (shProg->FragmentProgram)
|
||||||
|
_slang_resolve_samplers(shProg, &shProg->FragmentProgram->Base);
|
||||||
FLUSH_VERTICES(ctx, _NEW_TEXTURE);
|
FLUSH_VERTICES(ctx, _NEW_TEXTURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue