diff options
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r-- | lib/igt_kms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index d25090b0..a572fc60 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -2336,7 +2336,7 @@ static int igt_primary_plane_commit_legacy(igt_plane_t *primary, return 0; crtc_id = pipe->crtc_id; - fb_id = igt_plane_get_fb_id(primary); + fb_id = output ? igt_plane_get_fb_id(primary) : 0; if (fb_id) mode = igt_output_get_mode(output); else |