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:
parent
5f4975ca5c
commit
9c758f1628
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue