Skip to content

Commit

Permalink
Ignore some failures on angle
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
  • Loading branch information
sagudev committed Nov 26, 2024
1 parent 25fce6f commit f7280b6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,19 @@ pub fn test_context_creation() {
// requested GL version.
}
Err(error) => {
panic!(
let error = format!(
"Failed to create context ({:?}/{:?}): {:?}",
version, flags, error
)
);
// This fail on angle
if cfg!(all(feature = "sm-no-wgl", feature = "sm-angle"))
&& (flags.contains(ContextAttributeFlags::COMPATIBILITY_PROFILE)
|| version == *GL_ES_VERSIONS.last().unwrap())
{
println!("{error}");
} else {
panic!("{error}");
}
}
}
}
Expand Down

0 comments on commit f7280b6

Please sign in to comment.