mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-02-02 14:21:10 +00:00
kmsdrm: On VideoQuit(), only destroy dumb buffer if it exists.
This commit is contained in:
parent
8709f67ebc
commit
351219bfd8
|
@ -1447,9 +1447,11 @@ KMSDRM_VideoQuit(_THIS)
|
||||||
SDL_SetError("Failed to issue atomic commit on DestroyWindow().");
|
SDL_SetError("Failed to issue atomic commit on DestroyWindow().");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Destroy the DUMB buffer, now that it's not being
|
/* Destroy the DUMB buffer if it exists, now that it's not being
|
||||||
used anymore by the PRIMARY PLANE. */
|
used anymore by the PRIMARY PLANE. */
|
||||||
KMSDRM_DestroyDumbBuffer(_this, dispdata->dumb_buffer);
|
if (dispdata->dumb_buffer) {
|
||||||
|
KMSDRM_DestroyDumbBuffer(_this, dispdata->dumb_buffer);
|
||||||
|
}
|
||||||
|
|
||||||
/***************/
|
/***************/
|
||||||
/* BLOCK ENDS. */
|
/* BLOCK ENDS. */
|
||||||
|
|
Loading…
Reference in a new issue