diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-01-15 20:20:52 +0100 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-01-15 20:20:52 +0100 |
commit | 7652cc58607bc03bbb57f75ad418f8ec87b11541 (patch) | |
tree | 8c44feee956ca3686e5f189e49b391fc819d4fa9 /src/osx/headless.rs | |
parent | 22a27767d543a3b00a2b4f50b3ef92ebb8b82409 (diff) | |
download | glutin-7652cc58607bc03bbb57f75ad418f8ec87b11541.tar.gz glutin-7652cc58607bc03bbb57f75ad418f8ec87b11541.zip |
Blind attempt to fix the OS/X build
Diffstat (limited to 'src/osx/headless.rs')
-rw-r--r-- | src/osx/headless.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/osx/headless.rs b/src/osx/headless.rs index 39c8f50..ab3c341 100644 --- a/src/osx/headless.rs +++ b/src/osx/headless.rs @@ -24,8 +24,8 @@ static mut framebuffer: u32 = 0; static mut texture: u32 = 0; pub struct HeadlessContext { - width: uint, - height: uint, + width: usize, + height: usize, context: id, } @@ -34,13 +34,13 @@ impl HeadlessContext { let (width, height) = builder.dimensions; let context = unsafe { let attributes = [ - NSOpenGLPFADoubleBuffer as uint, - NSOpenGLPFAClosestPolicy as uint, - NSOpenGLPFAColorSize as uint, 24, - NSOpenGLPFAAlphaSize as uint, 8, - NSOpenGLPFADepthSize as uint, 24, - NSOpenGLPFAStencilSize as uint, 8, - NSOpenGLPFAOffScreen as uint, + NSOpenGLPFADoubleBuffer as usize, + NSOpenGLPFAClosestPolicy as usize, + NSOpenGLPFAColorSize as usize, 24, + NSOpenGLPFAAlphaSize as usize, 8, + NSOpenGLPFADepthSize as usize, 24, + NSOpenGLPFAStencilSize as usize, 8, + NSOpenGLPFAOffScreen as usize, 0 ]; |