Commit 7739dea3 authored by Martin Flöser's avatar Martin Flöser

[platforms/drm] Fix typo in cleanup of eglSurface

When switching modes the wrong surface was destroyed resulting in a
crash.
parent 33a4cf40
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment