aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs2
-rw-r--r--src/x11/ffi.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index eefd8e0..da2e83d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -107,6 +107,8 @@ pub enum Api {
OpenGl,
/// OpenGL embedded system. Available on Linux, Android.
OpenGlEs,
+ /// OpenGL for the web. Very similar to OpenGL ES.
+ WebGl,
}
#[derive(Debug, Copy)]
diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs
index 1d9e7de..1d91cab 100644
--- a/src/x11/ffi.rs
+++ b/src/x11/ffi.rs
@@ -1362,11 +1362,11 @@ pub struct XF86VidModeModeInfo {
pub struct XErrorEvent {
pub type_: libc::c_int,
pub display: *mut Display,
+ pub resourceid: XID,
pub serial: libc::c_ulong,
pub error_code: libc::c_char,
pub request_code: libc::c_char,
pub minor_code: libc::c_char,
- pub resourceid: XID,
}
#[cfg(feature = "headless")]