Skip to content

Commit

Permalink
Update src/platforms/eglstream-kms/server/platform.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Griffiths <[email protected]>
  • Loading branch information
mattkae and AlanGriffiths authored Oct 17, 2023
1 parent 6f410bf commit 3f21dcc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platforms/eglstream-kms/server/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,9 @@ mge::DisplayPlatform::DisplayPlatform(

mge::DisplayPlatform::~DisplayPlatform()
{
if (display)
if (display != EGL_NO_DISPLAY)
{
eglTerminate(display);
display = nullptr;
}
}

Expand Down

0 comments on commit 3f21dcc

Please sign in to comment.