mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
kmsdrm: Add missing KMSDRM_FBFromBO() failure check
(cherry picked from commit 1674a04b01)
This commit is contained in:
parent
5be888591c
commit
f3e1c93ea2
1 changed files with 5 additions and 0 deletions
|
|
@ -215,6 +215,11 @@ static bool KMSDRM_DumpCursorToBO(SDL_VideoDisplay *display, SDL_Mouse *mouse, S
|
|||
KMSDRM_FBInfo *fb = KMSDRM_FBFromBO(video_device, dispdata->cursor_bo);
|
||||
KMSDRM_PlaneInfo info;
|
||||
|
||||
if (!fb) {
|
||||
result = SDL_SetError("Failed to get cursor FB from BO");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
// Show the GBM BO buffer on the cursor plane.
|
||||
SDL_zero(info);
|
||||
info.plane = dispdata->cursor_plane;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue