diff --git a/src/Etterna/Actor/Gameplay/NoteDisplay.cpp b/src/Etterna/Actor/Gameplay/NoteDisplay.cpp index 34c05251ed..09250ac2d9 100644 --- a/src/Etterna/Actor/Gameplay/NoteDisplay.cpp +++ b/src/Etterna/Actor/Gameplay/NoteDisplay.cpp @@ -14,6 +14,7 @@ #include "RageUtil/Graphics/RageTexture.h" #include "Etterna/Actor/Base/Sprite.h" #include "Etterna/Models/StepsAndStyles/Style.h" +#include "RageUtil/Graphics/RageTextureManager.h" #include #include @@ -233,10 +234,15 @@ MakeNoteResource(const std::string& sButton, NOTESKIN->SetPlayerNumber(pn); NOTESKIN->SetGameController(gc); + auto tmp = TEXTUREMAN->m_Prefs.m_iMaxTextureResolution; + TEXTUREMAN->m_Prefs.m_iMaxTextureResolution = 1048576; + pRes->m_pActor = NOTESKIN->LoadActor(sButton, sElement, nullptr, bSpriteOnly, Color); ASSERT(pRes->m_pActor != NULL); + TEXTUREMAN->m_Prefs.m_iMaxTextureResolution = tmp; + g_NoteResource[Color][nsap] = pRes; it = g_NoteResource[Color].find(nsap); } diff --git a/src/RageUtil/Graphics/RageTextureManager.h b/src/RageUtil/Graphics/RageTextureManager.h index 7380dcf224..433167ea5a 100644 --- a/src/RageUtil/Graphics/RageTextureManager.h +++ b/src/RageUtil/Graphics/RageTextureManager.h @@ -93,7 +93,7 @@ class RageTextureManager RageTextureID GetDefaultTextureID(); RageTextureID GetScreenTextureID(); RageSurface* GetScreenSurface(); - + RageTextureManagerPrefs m_Prefs; private: void DeleteTexture(RageTexture* t); enum GCType @@ -104,7 +104,6 @@ class RageTextureManager void GarbageCollect(GCType type); RageTexture* LoadTextureInternal(RageTextureID ID); - RageTextureManagerPrefs m_Prefs; int m_iNoWarnAboutOddDimensions{ 0 }; RageTextureID::TexPolicy m_TexturePolicy{ RageTextureID::TEX_DEFAULT }; };