diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/win32/init.rs | 3 |
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; |