Skip to content

Commit

Permalink
Fix build with renderer-winit-skia-opengl
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Jun 19, 2023
1 parent 6fd222f commit 7af8d16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/renderers/skia/opengl_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl OpenGLSurface {
} else if #[cfg(not(target_family = "windows"))] {
let prefs = [glutin::display::DisplayApiPreference::Egl];
} else {
let prefs = [glutin::display::DisplayApiPreference::EglThenWgl(Some(_window_handle))];
let prefs = [glutin::display::DisplayApiPreference::EglThenWgl(Some(_window_handle.raw_window_handle()))];
}
}

Expand All @@ -234,8 +234,8 @@ impl OpenGLSurface {

// Upstream advises to use this only on Windows.
#[cfg(target_family = "windows")]
let config_template_builder =
config_template_builder.compatible_with_native_window(_window_handle);
let config_template_builder = config_template_builder
.compatible_with_native_window(_window_handle.raw_window_handle());

let config_template = config_template_builder.build();

Expand Down

0 comments on commit 7af8d16

Please sign in to comment.