glgsg: Fix mipmap level depth when uploading 3D textures

This commit is contained in:
rdb 2026-01-24 10:17:10 +01:00
parent 004a3c8572
commit 9edbdbf6c9
1 changed files with 1 additions and 0 deletions

View File

@ -14919,6 +14919,7 @@ upload_texture_view(CLP(TextureContext) *gtc, int view, bool needs_reload,
int width = tex->get_expected_mipmap_x_size(n);
int height = tex->get_expected_mipmap_y_size(n);
int depth = tex->get_expected_mipmap_z_size(n);
// we grab the mipmap pointer first, if it is NULL we grab the normal
// mipmap image pointer which is a PTA_uchar