Skip to content

Commit

Permalink
Use correct limit for max_texture_side
Browse files Browse the repository at this point in the history
This variable expected the maximum texture dimensions and not the maximum number of image layers.
  • Loading branch information
YouSafe authored Feb 17, 2024
1 parent a14b0c7 commit cf1ab9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl Gui {
renderer: Renderer,
) -> Gui {
let max_texture_side =
renderer.queue().device().physical_device().properties().max_image_array_layers
renderer.queue().device().physical_device().properties().max_image_dimension2_d
as usize;
let egui_ctx: egui::Context = Default::default();
let egui_winit = egui_winit::State::new(
Expand Down

0 comments on commit cf1ab9d

Please sign in to comment.