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

@ -71,7 +71,7 @@ bool SDLHostInterface::CreateSDLWindow()
bool SDLHostInterface::CreateDisplay()
{
#ifdef Y_PLATFORM_WINDOWS
#ifdef WIN32
m_display = UseOpenGLRenderer() ? OpenGLHostDisplay::Create(m_window) : D3D11HostDisplay::Create(m_window);
#else
m_display = OpenGLHostDisplay::Create(m_window);