Fixed Android build warnings
This commit is contained in:
parent
44f06b216a
commit
c6b9b08e9f
6 changed files with 13 additions and 13 deletions
|
@ -2939,7 +2939,7 @@ static int VULKAN_LockTexture(SDL_Renderer *renderer, SDL_Texture *texture,
|
|||
* then return:
|
||||
*/
|
||||
*pixels = textureData->stagingBuffer.mappedBufferPtr;
|
||||
*pitch = length;
|
||||
*pitch = (int)length;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
@ -3892,7 +3892,7 @@ static SDL_Surface* VULKAN_RenderReadPixels(SDL_Renderer *renderer, const SDL_Re
|
|||
VULKAN_VkFormatToSDLPixelFormat(vkFormat),
|
||||
renderer->target ? renderer->target->colorspace : renderer->output_colorspace,
|
||||
readbackBuffer.mappedBufferPtr,
|
||||
length);
|
||||
(int)length);
|
||||
|
||||
VULKAN_DestroyBuffer(rendererData, &readbackBuffer);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue