Too much changes
This commit is contained in:
@@ -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()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user