[platforms/drm] Fix typo in cleanup of eglSurface

When switching modes the wrong surface was destroyed resulting in a
crash.
master
Martin Flöser 7 years ago
parent 33a4cf4050
commit 7739dea33c

@ -168,7 +168,7 @@ bool EglGbmBackend::resetOutput(Output &o, DrmOutput *drmOutput)
} else {
// destroy previous surface
if (o.eglSurface != EGL_NO_SURFACE) {
eglDestroySurface(eglDisplay(), eglSurface);
eglDestroySurface(eglDisplay(), o.eglSurface);
}
o.eglSurface = eglSurface;
o.gbmSurface = gbmSurface;

Loading…
Cancel
Save