1
0
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:
XProger 2019-03-09 05:59:34 +03:00
parent 3ed6c9828f
commit 5838ce23a6

View File

@ -118,7 +118,7 @@ struct Texture : GAPI::Texture {
init(data);
if (mipmaps)
if (mipmaps && width > Core::support.texMinSize && height > Core::support.texMinSize)
generateMipMap();
}