diff --git a/Cargo.toml b/Cargo.toml index 5712b5d..d4c6c59 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,3 +15,7 @@ git = "https://github.com/servo/rust-geom" [dependencies.opengles] git = "https://github.com/servo/rust-opengles" + +[dependencies.cgl] + +git = "https://github.com/servo/rust-cgl" diff --git a/src/lib.rs b/src/lib.rs index b2c6e09..2dcc136 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,7 @@ extern crate libc; extern crate core_foundation; extern crate geom; extern crate opengles; +extern crate cgl; // Rust bindings to the IOSurface framework on Mac OS X. @@ -26,7 +27,7 @@ use core_foundation::string::CFStringRef; #[cfg(target_os="macos")] use geom::size::Size2D; #[cfg(target_os="macos")] -use opengles::cgl::{kCGLNoError, CGLGetCurrentContext, CGLTexImageIOSurface2D}; +use cgl::{kCGLNoError, CGLGetCurrentContext, CGLTexImageIOSurface2D}; #[cfg(target_os="macos")] use opengles::gl2::{BGRA, GLenum, GLsizei, RGBA, TEXTURE_RECTANGLE_ARB, UNSIGNED_INT_8_8_8_8_REV}; #[cfg(target_os="macos")]