Skip to content

Commit

Permalink
remove context from prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Aug 30, 2024
1 parent c82fdbf commit 79c09ad
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions sugarloaf/src/components/rich_text/image_cache/cache.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use wgpu::util::DeviceExt;
use crate::components::rich_text::image_cache::PixelFormat;
use crate::context::Context;
use rustc_hash::FxHashMap;
use wgpu::Texture;

use super::atlas::*;
use super::*;
Expand Down
1 change: 0 additions & 1 deletion sugarloaf/src/components/rich_text/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ impl RichTextBrush {
#[inline]
pub fn prepare(
&mut self,
ctx: &mut Context,
state: &crate::sugarloaf::state::SugarState,
) {
// let start = std::time::Instant::now();
Expand Down
2 changes: 1 addition & 1 deletion sugarloaf/src/sugarloaf/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl SugarState {
return false;
}

advance_brush.prepare(context, self);
advance_brush.prepare(self);
rect_brush.resize(context);

// Elementary renderer is used for everything else in sugarloaf
Expand Down

0 comments on commit 79c09ad

Please sign in to comment.