rsx/buffers: Warnings cleanup

This commit is contained in:
kd-11 2019-08-31 14:32:13 +03:00 committed by kd-11
parent 6504daa713
commit 652f18ebaa
1 changed files with 5 additions and 1 deletions

View File

@ -322,7 +322,7 @@ namespace
//Copy u16 blocks
for (u32 vertex = 0; vertex < vertex_count; ++vertex)
{
*(u32*)dst_ptr = *(u32*)src_ptr;
*(u16*)dst_ptr = *(u16*)src_ptr;
dst_ptr += dst_stride;
src_ptr += src_stride;
@ -688,6 +688,10 @@ namespace
const auto count = (remaining & ~0x7);
std::tie(min_index, max_index, written) = upload_u16_swapped(src.data(), dst.data(), count);
}
else
{
fmt::throw_exception("Unreachable" HERE);
}
remaining -= written;
}