aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/wgl
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-06-26 11:34:02 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-06-26 11:34:02 +0200
commit4349de5541bb3049b7f7a7b46616daa578b7665c (patch)
tree07adf83c0b84d2a7d33b16051561fe71906f0740 /src/api/wgl
parent1c6fb9daae92127271e0e13e373998f2bc37df82 (diff)
parent29261c8b5071d2253e2812b4c39b0498108ded38 (diff)
downloadglutin-4349de5541bb3049b7f7a7b46616daa578b7665c.tar.gz
glutin-4349de5541bb3049b7f7a7b46616daa578b7665c.zip
Merge pull request #502 from tomaka/fix-wgl-ext-swap-control
Fix the discovery of the WGL_EXT_swap_control extension
Diffstat (limited to 'src/api/wgl')
-rw-r--r--src/api/wgl/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/wgl/mod.rs b/src/api/wgl/mod.rs
index ee8aa3b..55fd22a 100644
--- a/src/api/wgl/mod.rs
+++ b/src/api/wgl/mod.rs
@@ -132,9 +132,7 @@ impl Context {
// handling vsync
if builder.vsync {
- // contrary to most extensions, it is permitted to discover the presence of
- // `WGL_EXT_swap_control` by seeing if the function pointer is available
- if extra_functions.SwapIntervalEXT.is_loaded() {
+ if extensions.split(' ').find(|&i| i == "WGL_EXT_swap_control").is_some() {
let _guard = try!(CurrentContextGuard::make_current(hdc, context.0));
if extra_functions.SwapIntervalEXT(1) == 0 {