Skip to content

Commit

Permalink
Fix a few typos (missing config).
Browse files Browse the repository at this point in the history
  • Loading branch information
ar37-rs committed Sep 22, 2022
1 parent 759dd8b commit af60700
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/eframe/src/web/web_glow_painter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl WebPainter {
let gl = std::sync::Arc::new(gl);

let dimension = [canvas.width() as i32, canvas.height() as i32];
let painter = egui_glow::Painter::new(gl, Some(dimension), shader_prefix, None)
let painter = egui_glow::Painter::new(gl, Some(dimension), shader_prefix, None, None)
.map_err(|error| format!("Error starting glow painter: {}", error))?;

Ok(Self {
Expand Down
5 changes: 3 additions & 2 deletions crates/egui_glow/src/winit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ pub struct EguiGlow {
}

impl EguiGlow {
/// For automatic shader version detection set `shader_version` to `None`.
/// For automatic shader version detection set `shader_version` and `disable_srgb` to `None`.
pub fn new<E>(
event_loop: &winit::event_loop::EventLoopWindowTarget<E>,
gl: std::sync::Arc<glow::Context>,
shader_version: Option<ShaderVersion>,
disable_srgb: Option<bool>,
) -> Self {
let painter = crate::Painter::new(gl, None, "", shader_version)
let painter = crate::Painter::new(gl, None, "", shader_version, disable_srgb)
.map_err(|error| {
tracing::error!("error occurred in initializing painter:\n{}", error);
})
Expand Down

0 comments on commit af60700

Please sign in to comment.