Skip to content

Commit ca97e02

Browse files
committed
Fix End not being 0
1 parent b5b19a6 commit ca97e02

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/wgl/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,12 @@ bitflags! {
9090
}
9191
}
9292

93-
///
93+
/// Various attributes that can be used in creating a context or choosing a pixel format.
9494
#[derive(Copy, Clone, PartialEq, Eq)]
9595
#[repr(C, i32)]
9696
pub enum IntegerAttribute {
97+
End = 0,
98+
9799
DrawToWindow(IntegerBool) = ffi::WGL_DRAW_TO_WINDOW_ARB,
98100
SupportOpenGL(IntegerBool) = ffi::WGL_SUPPORT_OPENGL_ARB,
99101
DoubleBuffer(IntegerBool) = ffi::WGL_DOUBLE_BUFFER_ARB,
@@ -105,11 +107,12 @@ pub enum IntegerAttribute {
105107
StencilBits(i32) = ffi::WGL_STENCIL_BITS_ARB,
106108
SampleBuffers(IntegerBool) = ffi::WGL_SAMPLE_BUFFERS_ARB,
107109
Samples(i32) = ffi::WGL_SAMPLES_ARB,
110+
111+
//TODO Split these off into their own enum
108112
ContextMajorVersion(i32) = ffi::WGL_CONTEXT_MAJOR_VERSION_ARB,
109113
ContextMinorVersion(i32) = ffi::WGL_CONTEXT_MINOR_VERSION_ARB,
110114
ContextProfileMask(ProfileMask) = ffi::WGL_CONTEXT_PROFILE_MASK_ARB,
111115
ContextFlags(ContextFlags) = ffi::WGL_CONTEXT_FLAGS_ARB,
112-
End,
113116
}
114117

115118
fn validate_integer_attributes(attributes: &[IntegerAttribute]) {

0 commit comments

Comments
 (0)