Skip to content

Commit

Permalink
Extra Travis CI OSX debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Dec 15, 2017
1 parent 0838c2f commit 007b9c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: rust

rust:
- nightly
#- nightly
- stable

cache: cargo
Expand All @@ -21,7 +21,7 @@ script:
- cargo test --verbose

os:
- linux
#- linux
- osx

after_success:
Expand Down
5 changes: 5 additions & 0 deletions src/platform/macos/headless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ impl HeadlessContext {
_: &PlatformSpecificHeadlessBuilderAttributes)
-> Result<HeadlessContext, CreationError>
{
println!("Creating headless context");
println!("GL version: {:?}", opengl.version);
println!("requirements: {:?}", pf_reqs);
let gl_profile = helpers::get_gl_profile(opengl)?;
println!("GL profile: {:?}", gl_profile);
let attributes = helpers::build_nsattributes(pf_reqs, gl_profile)?;
println!("attributes: {:?}", attributes);
let context = unsafe {
let pixelformat = NSOpenGLPixelFormat::alloc(nil).initWithAttributes_(&attributes);
if pixelformat == nil {
Expand Down

0 comments on commit 007b9c2

Please sign in to comment.