video_core: Resolve -Wreorder warnings
Ensures that the constructor members are always initialized in the order that they're declared in.
This commit is contained in:
parent
47df844338
commit
45fa12a05c
2 changed files with 3 additions and 4 deletions
|
@ -24,9 +24,8 @@ StagingCache::StagingCache() = default;
|
|||
StagingCache::~StagingCache() = default;
|
||||
|
||||
SurfaceBaseImpl::SurfaceBaseImpl(GPUVAddr gpu_addr, const SurfaceParams& params)
|
||||
: params{params}, mipmap_sizes(params.num_levels),
|
||||
mipmap_offsets(params.num_levels), gpu_addr{gpu_addr}, host_memory_size{
|
||||
params.GetHostSizeInBytes()} {
|
||||
: params{params}, host_memory_size{params.GetHostSizeInBytes()}, gpu_addr{gpu_addr},
|
||||
mipmap_sizes(params.num_levels), mipmap_offsets(params.num_levels) {
|
||||
std::size_t offset = 0;
|
||||
for (u32 level = 0; level < params.num_levels; ++level) {
|
||||
const std::size_t mipmap_size{params.GetGuestMipmapSize(level)};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue