mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
i965: Don't try to dump shader source for fixed-function FS programs.
sh->Source is NULL and this will segfault. Fixes MESA_GLSL=dump with "The Swapper". Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
b18871c863
commit
f896e82301
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
|
|||
}
|
||||
}
|
||||
|
||||
if (ctx->Shader.Flags & GLSL_DUMP) {
|
||||
if ((ctx->Shader.Flags & GLSL_DUMP) && shProg->Name != 0) {
|
||||
for (unsigned i = 0; i < shProg->NumShaders; i++) {
|
||||
const struct gl_shader *sh = shProg->Shaders[i];
|
||||
if (!sh)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue