mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
Don't destroy current FB if drmModeAddFB fails
It would probably result in a black screen. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
481394e3c9
commit
1351e48efe
@@ -2895,7 +2895,8 @@ flip_error:
|
||||
strerror(errno));
|
||||
|
||||
error:
|
||||
if (flipdata && flipdata->flip_count <= 1) {
|
||||
if (flipdata && flipdata->flip_count <= 1 &&
|
||||
drmmode->fb_id != flipdata->old_fb_id) {
|
||||
drmModeRmFB(drmmode->fd, drmmode->fb_id);
|
||||
drmmode->fb_id = flipdata->old_fb_id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user