We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GLArea.create_context
1 parent b5abe42 commit 26dbe02Copy full SHA for 26dbe02
gtk4/src/subclass/gl_area.rs
@@ -30,11 +30,7 @@ pub trait GLAreaImplExt: GLAreaImpl {
30
let data = Self::type_data();
31
let parent_class = data.as_ref().parent_class() as *mut ffi::GtkGLAreaClass;
32
if let Some(f) = (*parent_class).create_context {
33
- return Some(from_glib_none(f(self
34
- .obj()
35
- .unsafe_cast_ref::<GLArea>()
36
- .to_glib_none()
37
- .0)));
+ return from_glib_none(f(self.obj().unsafe_cast_ref::<GLArea>().to_glib_none().0));
38
};
39
None
40
}
0 commit comments