Skip to content

Commit

Permalink
implement WaylandWindow::RemoveCurrent()
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-rauch committed Aug 23, 2018
1 parent e445f08 commit f343fa5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/display/device/display_wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ struct WaylandWindow : public PangolinGl

void MakeCurrent() override;

void RemoveCurrent() override;

void SwapBuffers() override;

void ProcessEvents() override;
Expand Down Expand Up @@ -836,6 +838,10 @@ void WaylandWindow::MakeCurrent() {
context = this;
}

void WaylandWindow::RemoveCurrent() {
eglMakeCurrent(display->egl_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
}

void WaylandWindow::ToggleFullscreen() {
is_fullscreen = !is_fullscreen; // state for Pangolin
display->is_fullscreen = is_fullscreen; // state for Wayland
Expand Down

0 comments on commit f343fa5

Please sign in to comment.