aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-06-25 20:29:10 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-06-25 20:29:10 +0200
commit29261c8b5071d2253e2812b4c39b0498108ded38 (patch)
tree07adf83c0b84d2a7d33b16051561fe71906f0740 /src
parent1c6fb9daae92127271e0e13e373998f2bc37df82 (diff)
downloadglutin-29261c8b5071d2253e2812b4c39b0498108ded38.tar.gz
glutin-29261c8b5071d2253e2812b4c39b0498108ded38.zip
Fix the discovery of the WGL_EXT_swap_control extension
Diffstat (limited to 'src')
-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 {