diff --git a/Cargo.toml b/Cargo.toml index 091bdc63..fbbed750 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,8 +8,8 @@ repository = "https://github.com/ecoal95/rust-offscreen-rendering-context" build = "build.rs" [build-dependencies] -gl_generator = "*" -khronos_api = "*" +gl_generator = "0.0.28" +khronos_api = "0.0.8" [features] texture_surface = ["layers"] diff --git a/build.rs b/build.rs index 0adfd575..5f8aacf2 100644 --- a/build.rs +++ b/build.rs @@ -24,6 +24,7 @@ fn main() { gl_generator::registry::Ns::Egl, gl_generator::Fallbacks::All, khronos_api::EGL_XML, vec![], - "1.5", "core", &mut file).unwrap(); + "1.4", "core", &mut file).unwrap(); + println!("cargo:rustc-link-lib=EGL"); } }