aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-08-07 18:51:27 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-08-07 18:51:27 +0200
commit5f1d8dbedf90a2be2e69db5660d671dcc309958a (patch)
treee14df697b05de1c8ff059421410a3c6db8bf76e1 /src
parentacb0ab7cac0647bedda6e6c58a6586661721b0b9 (diff)
downloadglutin-5f1d8dbedf90a2be2e69db5660d671dcc309958a.tar.gz
glutin-5f1d8dbedf90a2be2e69db5660d671dcc309958a.zip
Add flags when choosing pixel format
Diffstat (limited to 'src')
-rw-r--r--src/win32/init.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/win32/init.rs b/src/win32/init.rs
index 7e7f399..69797b6 100644
--- a/src/win32/init.rs
+++ b/src/win32/init.rs
@@ -146,7 +146,8 @@ pub fn new_window(builder: WindowBuilder) -> Result<Window, String> {
let mut output: ffi::PIXELFORMATDESCRIPTOR = unsafe { mem::zeroed() };
output.nSize = mem::size_of::<ffi::PIXELFORMATDESCRIPTOR>() as ffi::WORD;
output.nVersion = 1;
- output.dwFlags = 0; // TODO: PFD_GENERIC_ACCELERATED? PFD_DOUBLEBUFFER? PFD_STEREO?
+ output.dwFlags = ffi::PFD_DRAW_TO_WINDOW | ffi::PFD_DOUBLEBUFFER |
+ ffi::PFD_SUPPORT_OPENGL | ffi::PFD_GENERIC_ACCELERATED;
output.iPixelType = ffi::PFD_TYPE_RGBA;
output.cColorBits = 24;
output.cAlphaBits = 8;