mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
gl: Silence compiler warning
This commit is contained in:
parent
ab3cde1939
commit
9a868e9239
1 changed files with 2 additions and 2 deletions
|
@ -1005,13 +1005,13 @@ namespace gl
|
|||
if (rsx::is_compressed_host_format(gcm_format))
|
||||
{
|
||||
const auto& desc = subresources_layout[0];
|
||||
const usz texture_data_sz = desc.width_in_block * desc.height_in_block * desc.depth * rsx::get_format_block_size_in_bytes(gcm_format);
|
||||
const u32 texture_data_sz = desc.width_in_block * desc.height_in_block * desc.depth * rsx::get_format_block_size_in_bytes(gcm_format);
|
||||
data_upload_buf.resize(texture_data_sz);
|
||||
}
|
||||
else
|
||||
{
|
||||
const auto aligned_pitch = utils::align<u32>(dst->pitch(), 4);
|
||||
const usz texture_data_sz = dst->depth() * dst->height() * aligned_pitch;
|
||||
const u32 texture_data_sz = dst->depth() * dst->height() * aligned_pitch;
|
||||
data_upload_buf.resize(texture_data_sz);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue