modesetting: Actually get framebuffer ID
We would fail to get the FB ID if it wasn't already imported, since we were checking to see if the pointer was NULL (it never was) rather than if the content of the pointer was 0. Signed-off-by: Daniel Stone <daniels@collabora.com> Reported-by: Olivier Fourdan <ofourdan@redhat.com> Tested-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
This commit is contained in:
parent
8ff1cdb2bf
commit
99f9b077c6
|
@ -624,7 +624,7 @@ drmmode_crtc_get_fb_id(xf86CrtcPtr crtc, uint32_t *fb_id, int *x, int *y)
|
|||
*y = crtc->y;
|
||||
}
|
||||
|
||||
if (fb_id == 0) {
|
||||
if (*fb_id == 0) {
|
||||
ret = drmmode_bo_import(drmmode, &drmmode->front_bo,
|
||||
&drmmode->fb_id);
|
||||
if (ret < 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user