mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 05:00:16 +00:00
Play guess who's to blame
This commit is contained in:
parent
3d041f4e91
commit
cce3cf145c
1 changed files with 1 additions and 2 deletions
|
@ -14,7 +14,6 @@ use foreign_types::ForeignType;
|
||||||
use media::core_video::CVMetalTextureCache;
|
use media::core_video::CVMetalTextureCache;
|
||||||
use metal::{CommandQueue, MTLPixelFormat, MTLResourceOptions, NSRange};
|
use metal::{CommandQueue, MTLPixelFormat, MTLResourceOptions, NSRange};
|
||||||
use objc::{self, msg_send, sel, sel_impl};
|
use objc::{self, msg_send, sel, sel_impl};
|
||||||
use smallvec::SmallVec;
|
|
||||||
use std::{ffi::c_void, mem, ptr, sync::Arc};
|
use std::{ffi::c_void, mem, ptr, sync::Arc};
|
||||||
|
|
||||||
const SHADERS_METALLIB: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/shaders.metallib"));
|
const SHADERS_METALLIB: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/shaders.metallib"));
|
||||||
|
@ -538,7 +537,7 @@ impl MetalRenderer {
|
||||||
);
|
);
|
||||||
|
|
||||||
let mut prev_texture_id = None;
|
let mut prev_texture_id = None;
|
||||||
let mut sprites = SmallVec::<[_; 1]>::new();
|
let mut sprites = Vec::new();
|
||||||
let mut paths_and_tiles = paths
|
let mut paths_and_tiles = paths
|
||||||
.iter()
|
.iter()
|
||||||
.map(|path| (path, tiles_by_path_id.get(&path.id).unwrap()))
|
.map(|path| (path, tiles_by_path_id.get(&path.id).unwrap()))
|
||||||
|
|
Loading…
Reference in a new issue