Skip to content

Commit

Permalink
Initialize device with size
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Jul 9, 2023
1 parent 99e2fa5 commit e9c78a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/wgpu_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl<'a> Renderer<'a> {
let renderer = imgui_wgpu::Renderer::new(imgui, &device, &queue, renderer_config);

// Create graphics device
let graphics_device = WgpuGraphicsDevice::new(&device);
let graphics_device = WgpuGraphicsDevice::new(&device, [size.width, size.height]);

Ok(Self {
window,
Expand Down

0 comments on commit e9c78a2

Please sign in to comment.