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);
|
Uint32 numPlanes = VULKAN_VkFormatGetNumPlanes(textureData->mainImage.format);
|
||||||
if (numPlanes == 2) {
|
if (numPlanes == 2) {
|
||||||
// NV12/NV21 data
|
// NV12/NV21 data
|
||||||
int UVbpp = VULKAN_GetBytesPerPixel(textureData->mainImage.format, 1);
|
int UVbpp = (int)VULKAN_GetBytesPerPixel(textureData->mainImage.format, 1);
|
||||||
int Ypitch = srcPitch;
|
int Ypitch = srcPitch;
|
||||||
int UVpitch = (srcPitch + (UVbpp - 1)) & ~(UVbpp - 1);
|
int UVpitch = (srcPitch + (UVbpp - 1)) & ~(UVbpp - 1);
|
||||||
const Uint8 *plane0 = (const Uint8 *)srcPixels;
|
const Uint8 *plane0 = (const Uint8 *)srcPixels;
|
||||||
|
|||||||
Reference in New Issue
Block a user