aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/libui/windows/gl.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-05-16 00:30:55 +0200
committerArisotura <thetotalworm@gmail.com>2019-05-16 00:30:55 +0200
commitf2725791d8c3b5f00ddc830691ed556b48f2f508 (patch)
tree7c0b736f8940ed930d84220fab6f9144cf03d8e5 /src/libui_sdl/libui/windows/gl.cpp
parent256b8cb69c751f43a7766eafc6f8798eefa3217e (diff)
preliminary, shitty, code for drawing the main window with OpenGL
Diffstat (limited to 'src/libui_sdl/libui/windows/gl.cpp')
-rw-r--r--src/libui_sdl/libui/windows/gl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libui_sdl/libui/windows/gl.cpp b/src/libui_sdl/libui/windows/gl.cpp
index 67eaeda..832a2e5 100644
--- a/src/libui_sdl/libui/windows/gl.cpp
+++ b/src/libui_sdl/libui/windows/gl.cpp
@@ -39,7 +39,7 @@ uiGLContext* uiGLNewContext(uiControl* c, int vermajor, int verminor)
memset(&pfd, 0, sizeof(pfd));
pfd.nSize = sizeof(pfd);
pfd.nVersion = 1;
- pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL;
+ pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
pfd.iPixelType = PFD_TYPE_RGBA;
pfd.cColorBits = 24;
pfd.cAlphaBits = 8;