mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
SDL_render_gles2: remove ineffective widening cast
warning: either cast from 'int' to 'size_t' (aka 'unsigned long') is ineffective, or there is loss of precision before the conversion [bugprone-misplaced-widening-cast]
This commit is contained in:
parent
ce308a7841
commit
9e509e4a4f
@ -1812,7 +1812,7 @@ GLES2_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
|
|||||||
int status;
|
int status;
|
||||||
|
|
||||||
temp_pitch = rect->w * SDL_BYTESPERPIXEL(temp_format);
|
temp_pitch = rect->w * SDL_BYTESPERPIXEL(temp_format);
|
||||||
buflen = (size_t) (rect->h * temp_pitch);
|
buflen = rect->h * temp_pitch;
|
||||||
if (buflen == 0) {
|
if (buflen == 0) {
|
||||||
return 0; /* nothing to do. */
|
return 0; /* nothing to do. */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user