Skip to content

Commit

Permalink
crnlib
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Jul 10, 2024
1 parent e4dc99b commit 0329ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crnlib/crn_mipmapped_texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2763,7 +2763,7 @@ bool mipmapped_texture::read_crn_from_memory(const void* pData, uint data_size,

if (!pDXT_image->init(
dxt_fmt, level_width, level_height,
num_blocks_x * num_blocks_y * (tex_info.m_bytes_per_block / sizeof(dxt_image::element)),
(size_t)num_blocks_x * (size_t)num_blocks_y * (tex_info.m_bytes_per_block / sizeof(dxt_image::element)),
reinterpret_cast<dxt_image::element*>(pFaces[f]), true)) {
crnlib_delete(pDXT_image);

Expand Down

0 comments on commit 0329ea5

Please sign in to comment.