From 21d8b08ecd9eb410287aa5443239283abdc2319e Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Thu, 28 May 2020 14:43:23 +0200 Subject: Windows: Only call SwapBuffers with OpenGL --- pugl/detail/win.c | 1 - pugl/detail/win_cairo.c | 1 - 2 files changed, 2 deletions(-) (limited to 'pugl/detail') diff --git a/pugl/detail/win.c b/pugl/detail/win.c index bacc72f..4b73c99 100644 --- a/pugl/detail/win.c +++ b/pugl/detail/win.c @@ -1102,7 +1102,6 @@ puglWinStubLeave(PuglView* view, const PuglEventExpose* expose) if (expose) { PAINTSTRUCT ps; EndPaint(view->impl->hwnd, &ps); - SwapBuffers(view->impl->hdc); } return PUGL_SUCCESS; diff --git a/pugl/detail/win_cairo.c b/pugl/detail/win_cairo.c index 7653e8b..9d7b4a3 100644 --- a/pugl/detail/win_cairo.c +++ b/pugl/detail/win_cairo.c @@ -153,7 +153,6 @@ puglWinCairoLeave(PuglView* view, const PuglEventExpose* expose) PAINTSTRUCT ps; EndPaint(view->impl->hwnd, &ps); - SwapBuffers(view->impl->hdc); } return PUGL_SUCCESS; -- cgit v1.2.1