summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-08-02 00:35:05 -0700
committerKenneth Graunke <[email protected]>2013-08-02 08:24:23 -0700
commit7d2423a09ec8a40b7da7c90fe3cb863d03f96b39 (patch)
treefc8efcaccb3e1f98ce050bddaf0406c8b28e20a9 /src/glsl/ast_to_hir.cpp
parent9d569fed8dec675446d37ff9d8b16554b18e542e (diff)
glsl: Fix NULL pointer dereferences when linking fails.
Commit 7cfefe6965d50 introduced a check for whether linked->Type equals GL_GEOMETRY_SHADER. However, linked may be NULL due to an earlier error condition. Since the entire function after the error path is (or should be) guarded by linked != NULL checks, we may as well just return early and remove the checks. Fixes crashes in 9 Piglit tests. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
0 files changed, 0 insertions, 0 deletions