rust-windowing/glutin

GlSurface is_single_buffered implementation for EGL is backwards

royaltm opened this issue · 0 comments

The function reports true for double buffered and false for single buffered. Should be the opposite.

fn is_single_buffered(&self) -> bool {

    fn is_single_buffered(&self) -> bool {
        unsafe { self.raw_attribute(egl::RENDER_BUFFER as EGLint) != egl::SINGLE_BUFFER as i32 }
    }

should be == egl::SINGLE_BUFFER