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
commit 9c758f1628

View file

@ -136,7 +136,7 @@ void OverlayManager::notifyOverlayUpdated(OverlayType type)
SDL_Surface* surface = TTF_RenderText_Blended_Wrapped(m_Overlays[type].font,
m_Overlays[type].text,
m_Overlays[type].color,
1000);
1024);
SDL_AtomicSetPtr((void**)&m_Overlays[type].surface, surface);
}