mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'jartha/fix-hwr2-capture-in-debug' into 'master'
Fix screenshot/video recording in Debug builds on GCC 15 See merge request kart-krew-dev/ring-racers-internal!2687
This commit is contained in:
commit
4c65960095
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ void ScreenshotPass::capture(Rhi& rhi)
|
|||
{
|
||||
// Read the aligned data into unaligned linear memory, flipping the rows in the process.
|
||||
uint32_t pixel_data_row = (height_ - row) - 1;
|
||||
std::move(&pixel_data_[pixel_data_row * read_stride], &pixel_data_[pixel_data_row * read_stride + stride], &packed_data_[row * stride]);
|
||||
uint8_t* pixel_data_row_ptr = &pixel_data_[pixel_data_row * read_stride];
|
||||
std::move(pixel_data_row_ptr, pixel_data_row_ptr + stride, &packed_data_[row * stride]);
|
||||
}
|
||||
|
||||
if (g_takemapthumbnail != TMT_NO)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue