Skip to content

Commit eb276dc

Browse files
authored
api: increase display features size
This should help preventing potential breakages.
1 parent 7bddcb5 commit eb276dc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

glutin/src/api/egl/display.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,10 @@ impl Display {
236236
supported_features
237237
.set(DisplayFeatures::SRGB_FRAMEBUFFERS, extensions.contains("EGL_KHR_gl_colorspace"));
238238

239-
let is_one_five = version >= Version::new(1, 5);
240-
241239
supported_features.set(
242240
DisplayFeatures::CONTEXT_ROBUSTNESS,
243-
is_one_five || extensions.contains("EGL_EXT_create_context_robustness"),
241+
version > Version::new(1, 5)
242+
|| extensions.contains("EGL_EXT_create_context_robustness"),
244243
);
245244

246245
supported_features.set(

glutin/src/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ impl fmt::Debug for DisplayApiPreference {
467467

468468
bitflags! {
469469
/// The features and extensions supported by the [`Display`].
470-
pub struct DisplayFeatures: u8 {
470+
pub struct DisplayFeatures: u32 {
471471
/// The display supports creating [`robust`] context.
472472
///
473473
/// [`robust`]: crate::context::Robustness

0 commit comments

Comments
 (0)