Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Checkpoint
Antonio Scandurra1fa45c69d6e2
diff --git a/crates/gpui3/src/platform/mac/metal_renderer.rs b/crates/gpui3/src/platform/mac/metal_renderer.rsindex a4f51d9b33f..72ab5978e5d 100644--- a/crates/gpui3/src/platform/mac/metal_renderer.rs+++ b/crates/gpui3/src/platform/mac/metal_renderer.rs@@ -132,12 +132,14 @@ impl MetalRenderer {depth_texture_desc.set_pixel_format(metal::MTLPixelFormat::Depth32Float);depth_texture_desc.set_storage_mode(metal::MTLStorageMode::Private);depth_texture_desc.set_usage(metal::MTLTextureUsage::RenderTarget);+ depth_texture_desc.set_width(f32::from(viewport_size.width).ceil() as u64);+ depth_texture_desc.set_height(f32::from(viewport_size.height).ceil() as u64);let depth_texture = self.device.new_texture(&depth_texture_desc);let depth_attachment = render_pass_descriptor.depth_attachment().unwrap();- // depth_attachment.set_texture(Some(&depth_texture));- // depth_attachment.set_clear_depth(1.);- // depth_attachment.set_store_action(metal::MTLStoreAction::Store);+ depth_attachment.set_texture(Some(&depth_texture));+ depth_attachment.set_clear_depth(1.);+ depth_attachment.set_store_action(metal::MTLStoreAction::Store);let color_attachment = render_pass_descriptor.color_attachments()