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
|
void
|
||||||
free_plane(struct plane **plane)
|
free_plane(struct plane **plane)
|
||||||
{
|
{
|
||||||
SDL_DisplayData *dispdata = (SDL_DisplayData *)SDL_GetDisplayDriverData(0);
|
if (*plane) {
|
||||||
|
|
||||||
if (dispdata && (*plane)) {
|
|
||||||
if ((*plane)->plane) {
|
if ((*plane)->plane) {
|
||||||
KMSDRM_drmModeFreePlane((*plane)->plane);
|
KMSDRM_drmModeFreePlane((*plane)->plane);
|
||||||
(*plane)->plane = NULL;
|
(*plane)->plane = NULL;
|
||||||
|
|
Loading…
Reference in New Issue