mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-23 03:06:29 +01:00
dynamic mipmap textures
This commit is contained in:
1 parent
6115d0f63b
commit
db2267ece7
4 files changed
+21
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user