Skip to content

Commit

Permalink
Uninitialized memory fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Jun 21, 2024
1 parent 451f917 commit 95a9a83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FNA3D_Driver_SDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -3239,6 +3239,7 @@ static void SDLGPU_INTERNAL_GetTextureData(

/* All zeroes, assume tight packing */
textureCopyParams.transferBuffer = renderer->textureDownloadBuffer;
textureCopyParams.offset = 0;
textureCopyParams.imagePitch = 0;
textureCopyParams.imageHeight = 0;

Expand Down

0 comments on commit 95a9a83

Please sign in to comment.