Create power-of-2 overlay surfaces for better performance

This lets us take the fast copy path in the DXVA2 renderer.
This commit is contained in:
Cameron Gutman
2020-12-20 17:31:02 -06:00
parent 5f4975ca5c
commit 9c758f1628
+1 -1
View File
@@ -136,7 +136,7 @@ void OverlayManager::notifyOverlayUpdated(OverlayType type)
SDL_Surface* surface = TTF_RenderText_Blended_Wrapped(m_Overlays[type].font, SDL_Surface* surface = TTF_RenderText_Blended_Wrapped(m_Overlays[type].font,
m_Overlays[type].text, m_Overlays[type].text,
m_Overlays[type].color, m_Overlays[type].color,
1000); 1024);
SDL_AtomicSetPtr((void**)&m_Overlays[type].surface, surface); SDL_AtomicSetPtr((void**)&m_Overlays[type].surface, surface);
} }