Fix warning
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 6m25s

This commit is contained in:
Florian RICHER 2025-05-25 21:10:58 +02:00
parent a4a6c0c60a
commit 6dae0339db
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
3 changed files with 6 additions and 8 deletions

View file

@ -4,9 +4,8 @@ use vulkano::command_buffer::{
};
use vulkano::pipeline::graphics::viewport::Viewport;
use vulkano::render_pass::{AttachmentLoadOp, AttachmentStoreOp};
use vulkano::swapchain::{PresentMode, SwapchainPresentInfo};
use vulkano::swapchain::PresentMode;
use vulkano::sync::GpuFuture;
use vulkano::{Validated, VulkanError, sync};
use vulkano_util::context::VulkanoContext;
use vulkano_util::window::{VulkanoWindows, WindowDescriptor};
use winit::application::ApplicationHandler;
@ -50,7 +49,7 @@ impl ApplicationHandler for App {
self.scene = Some(
Scene::load(
&self.vulkan_context,
&self.vulkano_windows.get_primary_renderer_mut().unwrap(),
self.vulkano_windows.get_primary_renderer_mut().unwrap(),
)
.unwrap(),
);
@ -102,7 +101,7 @@ impl ApplicationHandler for App {
if let Some(scene) = self.scene.as_ref() {
scene
.render(&self.vulkan_context, &renderer, &mut builder)
.render(&self.vulkan_context, renderer, &mut builder)
.unwrap();
}