mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Merge branch 'blender-v5.1-release'
This commit is contained in:
commit
b9d4616281
1 changed files with 2 additions and 1 deletions
|
|
@ -393,7 +393,8 @@ gpu::Texture *GPU_texture_create_compressed_2d(const char *name,
|
|||
if (data) {
|
||||
size_t ofs = 0;
|
||||
for (int mip = 0; mip < mip_len; mip++) {
|
||||
int extent[3], offset[3] = {0, 0, 0};
|
||||
int extent[3] = {1, 1, 1};
|
||||
int offset[3] = {0, 0, 0};
|
||||
tex->mip_size_get(mip, extent);
|
||||
|
||||
size_t size = ((extent[0] + 3) / 4) * ((extent[1] + 3) / 4) * to_block_size(tex_format);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue