Browse Source

Do not set scaling hint with out a render

pull/4422/head
Anders Jenbo 4 years ago
parent
commit
34201c7881
  1. 3
      Source/utils/display.cpp

3
Source/utils/display.cpp

@ -318,6 +318,9 @@ void ReinitializeTexture()
if (texture)
texture.reset();
if (renderer == nullptr)
return;
auto quality = fmt::format("{}", static_cast<int>(*sgOptions.Graphics.scaleQuality));
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, quality.c_str());

Loading…
Cancel
Save