mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 12:18:09 +02:00
mesa: NULL check InfoLog
When a program is compiled, but linking failed the sh->InfoLog could be NULL. This is expoloited by OpenGL ES 3.1 conformance tests. Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
a0b7c1c86e
commit
0508861f29
1 changed files with 2 additions and 2 deletions
|
|
@ -2033,8 +2033,8 @@ _mesa_create_shader_program(struct gl_context* ctx, GLboolean separate,
|
|||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
ralloc_strcat(&shProg->InfoLog, sh->InfoLog);
|
||||
if (sh->InfoLog)
|
||||
ralloc_strcat(&shProg->InfoLog, sh->InfoLog);
|
||||
}
|
||||
|
||||
delete_shader(ctx, shader);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue