- 
                Notifications
    
You must be signed in to change notification settings  - Fork 123
 
Open
Description
On rust-windowing/glutin#1307 we get errors:
error[E0599]: no method named `set_suspend_callback` found for reference `&EventLoopWindowTarget<T>` in the current scope
  --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/glutin-0.27.0/src/api/android/mod.rs:76:12
   |
76 |         el.set_suspend_callback(Some(Box::new(move |suspended| {
   |            ^^^^^^^^^^^^^^^^^^^^ method not found in `&EventLoopWindowTarget<T>`
error[E0615]: attempted to take value of method `SwapBuffersWithDamageKHR` on type `&api::egl::egl::Egl`
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/glutin-0.27.0/src/api/egl/mod.rs:621:17
    |
621 |         if !egl.SwapBuffersWithDamageKHR.is_loaded() {
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^ method, not a field
    |
help: use parentheses to call the method
    |
621 |         if !egl.SwapBuffersWithDamageKHR(_, _, _, _).is_loaded() {
    |                                         ++++++++++++
error[E0615]: attempted to take value of method `SwapBuffersWithDamageKHR` on type `&api::egl::egl::Egl`
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/glutin-0.27.0/src/api/egl/mod.rs:664:13
    |
664 |         egl.SwapBuffersWithDamageKHR.is_loaded()
    |             ^^^^^^^^^^^^^^^^^^^^^^^^ method, not a field
    |
help: use parentheses to call the method
    |
664 |         egl.SwapBuffersWithDamageKHR(_, _, _, _).is_loaded()
    |                                     ++++++++++++
Some errors have detailed explanations: E0599, E0615.
For more information about an error, try `rustc --explain E0599`.
error: could not compile `glutin` due to 3 previous errors
is this a bug in gl-rs or did the members turn into functions somehow? Also set_suspend_callback is gone
Metadata
Metadata
Assignees
Labels
No labels