mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
glgsg: fix broken upload of downscaled texture without mipmaps
Fixes #306
This commit is contained in:
parent
f986f8de1b
commit
3b4d4b0804
@ -12647,7 +12647,7 @@ upload_texture_image(CLP(TextureContext) *gtc, bool needs_reload,
|
||||
int depth = tex->get_expected_mipmap_z_size(mipmap_bias);
|
||||
|
||||
// Determine the number of images to upload.
|
||||
int num_levels = 1;
|
||||
int num_levels = mipmap_bias + 1;
|
||||
if (uses_mipmaps) {
|
||||
num_levels = tex->get_expected_num_mipmap_levels();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user