mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-13 08:34:32 +02:00
fix mip generation for zero-sized textures
This commit is contained in:
@@ -118,7 +118,7 @@ struct Texture : GAPI::Texture {
|
||||
|
||||
init(data);
|
||||
|
||||
if (mipmaps)
|
||||
if (mipmaps && width > Core::support.texMinSize && height > Core::support.texMinSize)
|
||||
generateMipMap();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user