Fixed warning: implicit conversion loses integer precision
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

This commit is contained in:
Sam Lantinga
2025-12-16 14:51:19 -08:00
parent c7508ca2e9
commit 63636c8403
+1 -1
View File
@@ -2954,7 +2954,7 @@ static bool VULKAN_UpdateTexture(SDL_Renderer *renderer, SDL_Texture *texture,
Uint32 numPlanes = VULKAN_VkFormatGetNumPlanes(textureData->mainImage.format);
if (numPlanes == 2) {
// NV12/NV21 data
int UVbpp = VULKAN_GetBytesPerPixel(textureData->mainImage.format, 1);
int UVbpp = (int)VULKAN_GetBytesPerPixel(textureData->mainImage.format, 1);
int Ypitch = srcPitch;
int UVpitch = (srcPitch + (UVbpp - 1)) & ~(UVbpp - 1);
const Uint8 *plane0 = (const Uint8 *)srcPixels;