From 87344fe6e9a571270036e72b573d9be6d9e11eb0 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Wed, 29 Oct 2014 14:10:03 +1000 Subject: [PATCH] Update to use CGL crate. --- Cargo.toml | 4 ++++ src/lib.rs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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")]