mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Made the menu texture render correctly when running really low on texture memory.
This commit is contained in:
parent
fbb974de03
commit
a979c6d0e5
|
@ -59,7 +59,7 @@ void NinePatchComponent::buildVertices()
|
||||||
else
|
else
|
||||||
scaleFactor = glm::clamp(Renderer::getScreenWidthModifier(), 0.4f, 3.0f);
|
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{}) {
|
if (mTexture->getSize() == glm::ivec2{}) {
|
||||||
mVertices = nullptr;
|
mVertices = nullptr;
|
||||||
|
|
Loading…
Reference in a new issue