Skip to content

Commit

Permalink
resource manager fix
Browse files Browse the repository at this point in the history
  • Loading branch information
turanszkij committed Jun 5, 2024
1 parent 42b8216 commit e631268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WickedEngine/wiResourceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ namespace wi
{
for (uint32_t mip = 0; mip < desc.mip_levels; ++mip)
{
SubresourceData& subresourceData = initdata_stack[subresource_index++];
SubresourceData& subresourceData = initdata[subresource_index++];
subresourceData.data_ptr = filedata + header.mip_offset(mip, slice);
subresourceData.row_pitch = header.row_pitch(mip);
subresourceData.slice_pitch = header.slice_pitch(mip);
Expand Down

0 comments on commit e631268

Please sign in to comment.