broke down big ol if-statement into six parts. It should be easier to read now
renamed m_textures to m_texturesAlreadyInCatalogue and m_textureUnit to m_textureAtlas to reflect what they appear to be