mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 22:42:57 +00:00
- fixed erroneous texture mipmapping in Vulkan render
https://forum.zdoom.org/viewtopic.php?t=64257
This commit is contained in:
parent
04334aa0fe
commit
bbb75a40ca
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ void VkSamplerManager::Create()
|
|||
builder.setMinFilter(TexFilter[filter].minFilter);
|
||||
builder.setAddressMode(TexClamp[i].clamp_u, TexClamp[i].clamp_v, VK_SAMPLER_ADDRESS_MODE_REPEAT);
|
||||
builder.setMipmapMode(TexFilter[filter].mipfilter);
|
||||
if (TexFilter[filter].mipmapping)
|
||||
if (i <= CLAMP_XY && TexFilter[filter].mipmapping)
|
||||
{
|
||||
builder.setAnisotropy(gl_texture_filter_anisotropic);
|
||||
builder.setMaxLod(100.0f); // According to the spec this value is clamped so something high makes it usable for all textures.
|
||||
|
|
Loading…
Reference in a new issue