From f83e783b267f8b29487a450d9f251733ea7617cd Mon Sep 17 00:00:00 2001 From: wartman4404 Date: Sat, 10 Oct 2015 21:08:05 -0500 Subject: [PATCH] ensure server has GLX_ARB_create_context extension --- src/api/glx/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/glx/mod.rs b/src/api/glx/mod.rs index 40ef63c7..a7f86625 100644 --- a/src/api/glx/mod.rs +++ b/src/api/glx/mod.rs @@ -260,7 +260,7 @@ fn create_context(glx: &ffi::glx::Glx, extra_functions: &ffi::glx_extra::Glx, ex -> Result { unsafe { - let context = if extra_functions.CreateContextAttribsARB.is_loaded() { + let context = if extensions.split(' ').find(|&i| i == "GLX_ARB_create_context").is_some() { let mut attributes = Vec::with_capacity(9); attributes.push(ffi::glx_extra::CONTEXT_MAJOR_VERSION_ARB as libc::c_int);