aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
authorJean Pierre Cimalando <jp-dev@inbox.ru>2020-05-28 14:43:23 +0200
committerDavid Robillard <d@drobilla.net>2020-06-08 21:18:15 +0200
commit21d8b08ecd9eb410287aa5443239283abdc2319e (patch)
treee2af74f0bc320300db2f0a5c8bdc89d42f9789e9 /pugl
parent4bb9fc2c422f22765a02f3c5170c061bf4afe0f6 (diff)
downloadpugl-21d8b08ecd9eb410287aa5443239283abdc2319e.tar.gz
pugl-21d8b08ecd9eb410287aa5443239283abdc2319e.tar.bz2
pugl-21d8b08ecd9eb410287aa5443239283abdc2319e.zip
Windows: Only call SwapBuffers with OpenGL
Diffstat (limited to 'pugl')
-rw-r--r--pugl/detail/win.c1
-rw-r--r--pugl/detail/win_cairo.c1
2 files changed, 0 insertions, 2 deletions
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;