dynamic mipmap textures

This commit is contained in:
DrPerkyLegit committed 2026-11-05 10:13:38 -05:00
1 parent 6115d0f63b
commit db2267ece7
4 files changed
+21 -2

No files matched your search

+9
View File
@@ -54,6 +54,8 @@ BufferedImage::BufferedImage(const wstring& File, bool filenameHasExtension /*=f
wstring filePath;
filePath = File;
const bool isTerrainAtlas = filePath.find(L"terrain.png") != wstring::npos;
wDrive = drive;
if(wDrive.empty())
{
@@ -181,6 +183,13 @@ BufferedImage::BufferedImage(const wstring& File, bool filenameHasExtension /*=f
return;
}
if (isTerrainAtlas && l > 0)
{
delete[] data[l];
data[l] = nullptr;
continue;
}
if( l == 0 )
{
width=ImageInfo.Width;