From 238ccec5eeb71f1d11c97b6d239a1cbb5e2a7045 Mon Sep 17 00:00:00 2001 From: Junkui Zhang <364772080@qq.com> Date: Sun, 13 Jul 2025 20:31:39 +0800 Subject: [PATCH] fix --- crates/gpui/src/platform/windows/directx_renderer.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/gpui/src/platform/windows/directx_renderer.rs b/crates/gpui/src/platform/windows/directx_renderer.rs index e4abdd6c3dee0e692832fc195b4d92952df45748..36c68c8eb4668327c818fe313f4c0a8cc4a448c7 100644 --- a/crates/gpui/src/platform/windows/directx_renderer.rs +++ b/crates/gpui/src/platform/windows/directx_renderer.rs @@ -131,7 +131,6 @@ impl DirectXRenderer { [0.0, 0.0, 0.0, 0.0], &self.globals.blend_state, )?; - println!("--> Drawing scene"); for batch in scene.batches() { match batch { PrimitiveBatch::Shadows(shadows) => self.draw_shadows(shadows), @@ -332,7 +331,7 @@ impl DirectXRenderer { &self.pipelines.paths_pipeline, &self.context.viewport, &self.globals.global_params_buffer, - D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP, + D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST, )?; for i in 0..paths.len() { @@ -494,7 +493,7 @@ impl DirectXRenderPipelines { "paths_vertex", "paths_fragment", std::mem::size_of::(), - 1, + 32, )?; let underline_pipeline = create_pipieline( device,