diff --git a/ios/graphics/Helpers/MTLDevice+Helpers.swift b/ios/graphics/Helpers/MTLDevice+Helpers.swift index 0bc868409..7bcf12f70 100644 --- a/ios/graphics/Helpers/MTLDevice+Helpers.swift +++ b/ios/graphics/Helpers/MTLDevice+Helpers.swift @@ -15,7 +15,7 @@ import UIKit extension MTLDevice { func makeBuffer(from sharedBytes: MCSharedBytes) -> MTLBuffer? { guard let pointer = UnsafeRawPointer(bitPattern: Int(sharedBytes.address)), - sharedBytes.elementCount >= 0 + sharedBytes.elementCount > 0 else { return nil } return self.makeBuffer(bytes: pointer, length: Int(sharedBytes.elementCount * sharedBytes.bytesPerElement), options: []) diff --git a/ios/graphics/Model/Quad/Quad2dInstanced.swift b/ios/graphics/Model/Quad/Quad2dInstanced.swift index 7504be3b1..32c2ccf53 100644 --- a/ios/graphics/Model/Quad/Quad2dInstanced.swift +++ b/ios/graphics/Model/Quad/Quad2dInstanced.swift @@ -238,7 +238,6 @@ extension Quad2dInstanced: MCQuad2dInstancedInterface { } lock.withCritical { texture = textureHolder.texture - ready = true } }