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:
parent
4587fa46b0
commit
b19611e841
1 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue