mirror of
https://github.com/XProger/OpenLara.git
synced 2025-02-24 07:22:58 +01:00
fix mip generation for zero-sized textures
This commit is contained in:
parent
3ed6c9828f
commit
5838ce23a6
@ -118,7 +118,7 @@ struct Texture : GAPI::Texture {
|
|||||||
|
|
||||||
init(data);
|
init(data);
|
||||||
|
|
||||||
if (mipmaps)
|
if (mipmaps && width > Core::support.texMinSize && height > Core::support.texMinSize)
|
||||||
generateMipMap();
|
generateMipMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user