mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
metal: remove a redundant memcpy when uploading pixels to a texture.
This commit is contained in:
@@ -226,8 +226,6 @@ void Texture::uploadByteData(PixelFormat pixelformat, const void *data, size_t s
|
||||
length:size
|
||||
options:MTLResourceStorageModeShared];
|
||||
|
||||
memcpy(buffer.contents, data, size);
|
||||
|
||||
id<MTLBlitCommandEncoder> encoder = gfx->useBlitEncoder();
|
||||
|
||||
int z = 0;
|
||||
|
||||
Reference in New Issue
Block a user