mirror of https://github.com/encounter/SDL.git
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