Made the menu texture render correctly when running really low on texture memory.

This commit is contained in:
Leon Styhre 2021-10-26 18:29:30 +02:00
parent fbb974de03
commit a979c6d0e5

View file

@ -59,7 +59,7 @@ void NinePatchComponent::buildVertices()
else
scaleFactor = glm::clamp(Renderer::getScreenWidthModifier(), 0.4f, 3.0f);
mTexture = TextureResource::get(mPath, false, false, true, true, true, scaleFactor);
mTexture = TextureResource::get(mPath, false, false, false, true, true, scaleFactor);
if (mTexture->getSize() == glm::ivec2{}) {
mVertices = nullptr;