mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-03 15:46:04 +02:00
kmsdrm: Add missing KMSDRM_FBFromBO() failure check
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user