diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-07-20 19:38:57 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-07-20 19:38:57 +0200 |
commit | 43dabf131aa9f76610e1cfd0685e3b36de8c2ebd (patch) | |
tree | 602da832e457e13f384a87bef1705df0eea60434 /src/api/wgl | |
parent | ba5adfa1e13e8be0dec888b3fbcb54fd30a9a673 (diff) | |
download | glutin-43dabf131aa9f76610e1cfd0685e3b36de8c2ebd.tar.gz glutin-43dabf131aa9f76610e1cfd0685e3b36de8c2ebd.zip |
Add CreationError::OpenGlVersionNotSupported
Diffstat (limited to 'src/api/wgl')
-rw-r--r-- | src/api/wgl/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/wgl/mod.rs b/src/api/wgl/mod.rs index a90baff..54a9a9a 100644 --- a/src/api/wgl/mod.rs +++ b/src/api/wgl/mod.rs @@ -235,7 +235,7 @@ unsafe fn create_context(extra: Option<(&gl::wgl_extra::Wgl, &BuilderAttribs<'st attributes.push(gl::wgl_extra::CONTEXT_PROFILE_MASK_ARB as libc::c_int); attributes.push(gl::wgl_extra::CONTEXT_ES2_PROFILE_BIT_EXT as libc::c_int); } else { - return Err(CreationError::NotSupported); + return Err(CreationError::OpenGlVersionNotSupported); } attributes.push(gl::wgl_extra::CONTEXT_MAJOR_VERSION_ARB as libc::c_int); @@ -243,7 +243,7 @@ unsafe fn create_context(extra: Option<(&gl::wgl_extra::Wgl, &BuilderAttribs<'st attributes.push(gl::wgl_extra::CONTEXT_MINOR_VERSION_ARB as libc::c_int); attributes.push(minor as libc::c_int); }, - GlRequest::Specific(_, _) => return Err(CreationError::NotSupported), + GlRequest::Specific(_, _) => return Err(CreationError::OpenGlVersionNotSupported), GlRequest::GlThenGles { opengl_version: (major, minor), .. } => { attributes.push(gl::wgl_extra::CONTEXT_MAJOR_VERSION_ARB as libc::c_int); attributes.push(major as libc::c_int); |