* Fixes to fancy pants grass detection, etc.

This commit is contained in:
iProgramInCpp
2023-12-26 01:18:54 +02:00
parent 7f219385c6
commit 7eae466865
13 changed files with 56 additions and 32 deletions

View File

@@ -11,13 +11,13 @@
bool Textures::MIPMAP = false;
int Textures::loadTexture(const std::string& name, bool b)
int Textures::loadTexture(const std::string& name, bool bIsRequired)
{
std::map<std::string, GLuint>::iterator i = m_textures.find(name);
if (i != m_textures.end())
return i->second;
Texture t = m_pPlatform->loadTexture(name, b);
Texture t = m_pPlatform->loadTexture(name, bIsRequired);
int result = -1;
if (t.m_pixels)