aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-10-19 08:19:29 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-10-19 08:19:29 +0200
commit6cefaa12be09c76bd0320a22a513e9bc99ea6337 (patch)
tree8a837a9650f4ed07a8ec43f6c3f847cff2950d4a /src
parentdcd5c49b7f479c10004c54623c73cdb4434498a8 (diff)
parentf83e783b267f8b29487a450d9f251733ea7617cd (diff)
downloadglutin-6cefaa12be09c76bd0320a22a513e9bc99ea6337.tar.gz
glutin-6cefaa12be09c76bd0320a22a513e9bc99ea6337.zip
Merge pull request #636 from wartman4404/master
ensure server has GLX_ARB_create_context extension
Diffstat (limited to 'src')
-rw-r--r--src/api/glx/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/glx/mod.rs b/src/api/glx/mod.rs
index 40ef63c..a7f8662 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<ffi::GLXContext, CreationError>
{
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);