mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-13 15:23:34 +00:00
Fixed warning: implicit conversion loses integer precision
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user