Too much changes

This commit is contained in:
2025-03-09 04:50:41 +03:00
parent e45d21b621
commit b1fb15fa1f
20 changed files with 255 additions and 44 deletions

View File

@@ -95,7 +95,7 @@ Texture2D* TexturesManager::CreateManual2D(const char* name, int width, int heig
// allocate
Texture2D* texture = Texture2D::Create();
texture->CreateRaw(nullptr, width, height, format);
texture->CreateRaw(NULL, width, height, format);
texture->m_textureFileName = name;
if (useAsRenderTarget)
@@ -160,10 +160,10 @@ Texture2D* TexturesManager::LoadTexture2D(const char* texturename, bool useMipma
std::string texnamebuf;
// find texture from disk
for (int i = 0; i < kTexFileExtensionsSize; i++)
for (int j = 0; j < kTexFileExtensionsSize; j++)
{
std::string textureFilename = fs::getFileNameWithoutExtension(texturename);
textureFilename += g_texFileExtensions[i];
textureFilename += g_texFileExtensions[j];
if (g_fileManager->FileExist(textureFilename.c_str()))
{