Changed ResourceManager::getTexture() to return a reference.