mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
i965: remove unnecessary null check
We would have hit a segfault already if this could be null. Fixes Coverity warning spotted by Matt. Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
29d70cc964
commit
a86aa87342
1 changed files with 1 additions and 4 deletions
|
|
@ -163,10 +163,7 @@ brw_codegen_gs_prog(struct brw_context *brw,
|
|||
&prog_data, gs->Program->nir, prog,
|
||||
st_index, &program_size, &error_str);
|
||||
if (program == NULL) {
|
||||
if (prog) {
|
||||
ralloc_strcat(&prog->InfoLog, error_str);
|
||||
}
|
||||
|
||||
ralloc_strcat(&prog->InfoLog, error_str);
|
||||
_mesa_problem(NULL, "Failed to compile geometry shader: %s\n", error_str);
|
||||
|
||||
ralloc_free(mem_ctx);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue