aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
Diffstat (limited to 'pugl')
-rw-r--r--pugl/pugl_win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pugl/pugl_win.c b/pugl/pugl_win.c
index 998e242..acf1700 100644
--- a/pugl/pugl_win.c
+++ b/pugl/pugl_win.c
@@ -148,7 +148,8 @@ puglGetPixelFormatDescriptor(const PuglHints* hints)
ZeroMemory(&pfd, sizeof(pfd));
pfd.nSize = sizeof(pfd);
pfd.nVersion = 1;
- pfd.dwFlags = PFD_DRAW_TO_WINDOW|PFD_SUPPORT_OPENGL|PFD_DOUBLEBUFFER;
+ pfd.dwFlags = PFD_DRAW_TO_WINDOW|PFD_SUPPORT_OPENGL;
+ pfd.dwFlags |= hints->double_buffer ? PFD_DOUBLEBUFFER : 0;
pfd.iPixelType = PFD_TYPE_RGBA;
pfd.cColorBits = (BYTE)rgbBits;
pfd.cRedBits = (BYTE)hints->red_bits;