diff options
author | Arisotura <thetotalworm@gmail.com> | 2019-05-16 00:30:55 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2019-05-16 00:30:55 +0200 |
commit | f2725791d8c3b5f00ddc830691ed556b48f2f508 (patch) | |
tree | 7c0b736f8940ed930d84220fab6f9144cf03d8e5 /src/libui_sdl/libui/windows/gl.cpp | |
parent | 256b8cb69c751f43a7766eafc6f8798eefa3217e (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.cpp | 2 |
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; |