GPU/HW: Don't crash when switching to incompatible renderer

This commit is contained in:
Connor McLaughlin
2019-11-04 01:57:08 +10:00
parent a397979d72
commit 5d26c2177f
5 changed files with 15 additions and 13 deletions

View File

@ -50,7 +50,7 @@ private:
bool HasSystem() const { return static_cast<bool>(m_system); }
#ifdef Y_PLATFORM_WINDOWS
#ifdef WIN32
bool UseOpenGLRenderer() const { return m_settings.gpu_renderer == Settings::GPURenderer::HardwareOpenGL; }
#else
bool UseOpenGLRenderer() const { return true; }