vulkan: texture upload fix #478

This commit is contained in:
Turánszki János
2022-06-30 10:39:13 +02:00
parent daaceedfd4
commit d762324659
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -3868,8 +3868,8 @@ using namespace vulkan_internal;
{
const SubresourceData& subresourceData = initial_data[initDataIdx++];
const uint32_t block_size = GetFormatBlockSize(desc->format);
const uint32_t num_blocks_x = width / block_size;
const uint32_t num_blocks_y = height / block_size;
const uint32_t num_blocks_x = std::max(1u, width / block_size);
const uint32_t num_blocks_y = std::max(1u, height / block_size);
const uint32_t dst_rowpitch = num_blocks_x * GetFormatStride(desc->format);
const uint32_t dst_slicepitch = dst_rowpitch * num_blocks_y;
const uint32_t src_rowpitch = subresourceData.row_pitch;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 70;
// minor bug fixes, alterations, refactors, updates
const int revision = 1;
const int revision = 2;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);