mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
kmsdrm: No need to test for display driverdata when freeing a plane.
This commit is contained in:
parent
6e03fab982
commit
550e153365
@ -576,9 +576,7 @@ cleanup:
|
||||
void
|
||||
free_plane(struct plane **plane)
|
||||
{
|
||||
SDL_DisplayData *dispdata = (SDL_DisplayData *)SDL_GetDisplayDriverData(0);
|
||||
|
||||
if (dispdata && (*plane)) {
|
||||
if (*plane) {
|
||||
if ((*plane)->plane) {
|
||||
KMSDRM_drmModeFreePlane((*plane)->plane);
|
||||
(*plane)->plane = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user