mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-15 01:24:35 +02:00
fix mip generation for zero-sized textures
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user