mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
metal: Apple Silicon macs also support rgba4 / rgb5a1 / rgb565.
This commit is contained in:
@@ -235,14 +235,13 @@ void Texture::uploadByteData(PixelFormat pixelformat, const void *data, size_t s
|
||||
|
||||
switch (pixelformat)
|
||||
{
|
||||
#ifdef LOVE_IOS
|
||||
case PIXELFORMAT_PVR1_RGB2_UNORM:
|
||||
case PIXELFORMAT_PVR1_RGB4_UNORM:
|
||||
case PIXELFORMAT_PVR1_RGBA2_UNORM:
|
||||
case PIXELFORMAT_PVR1_RGBA4_UNORM:
|
||||
options |= MTLBlitOptionRowLinearPVRTC;
|
||||
if (@available(macOS 11.0, iOS 9.0, *))
|
||||
options |= MTLBlitOptionRowLinearPVRTC;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user