1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

allow software renderer

This commit is contained in:
宋文武 2024-10-12 21:01:20 +08:00
parent 4587fa46b0
commit b19611e841

View file

@ -62,6 +62,9 @@ void Screen::init(const struct ScreenSettings* settings)
m_renderer = SDL_CreateRenderer(m_window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE);
if (m_renderer == NULL)
m_renderer = SDL_CreateRenderer(m_window, -1, 0);
if (m_renderer == NULL)
{
vlog_error("Could not create renderer: %s", SDL_GetError());