aboutsummaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.rs b/build.rs
index ca95574..4f96710 100644
--- a/build.rs
+++ b/build.rs
@@ -58,6 +58,14 @@ fn main() {
"GLX_SGI_swap_control".to_string()
],
"1.4", "core", &mut file).unwrap();
+
+ let mut file = File::create(&dest.join("egl_bindings.rs")).unwrap();
+ gl_generator::generate_bindings(gl_generator::StructGenerator,
+ gl_generator::registry::Ns::Egl,
+ gl_generator::Fallbacks::All,
+ khronos_api::EGL_XML,
+ vec![],
+ "1.5", "core", &mut file).unwrap();
}
if target.contains("android") {