diff --git a/gpui/src/platform/mac/shaders/shaders.metal b/gpui/src/platform/mac/shaders/shaders.metal index 60b26ac216..17b522b725 100644 --- a/gpui/src/platform/mac/shaders/shaders.metal +++ b/gpui/src/platform/mac/shaders/shaders.metal @@ -21,8 +21,8 @@ vertex QuadFragmentInput quad_vertex( ) { float2 unit_vertex = unit_vertices[unit_vertex_id]; GPUIQuad quad = quads[quad_id]; - float2 position = (unit_vertex * quad.size + quad.origin) / (uniforms->viewport_size / 2.0); - float4 device_position = float4(position * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); + float2 position = unit_vertex * quad.size + quad.origin; + float4 device_position = float4(position / uniforms->viewport_size * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); return QuadFragmentInput { device_position,