mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
glsl: fix crash introduced by the previous commit
This commit is contained in:
parent
7e414b5864
commit
e929e27737
1 changed files with 1 additions and 1 deletions
|
|
@ -512,7 +512,7 @@ do_dead_builtin_varyings(struct gl_context *ctx,
|
|||
tfeedback_decl *tfeedback_decls)
|
||||
{
|
||||
/* Lower the gl_FragData array to separate variables. */
|
||||
if (consumer->Type == GL_FRAGMENT_SHADER) {
|
||||
if (consumer && consumer->Type == GL_FRAGMENT_SHADER) {
|
||||
lower_fragdata_array(consumer->ir);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue