mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Try with the software renderer if accelerated fails
This commit is contained in:
parent
96851b8d47
commit
53b1fa3dea
@ -422,8 +422,15 @@ static bool DoInit (Sint32 argc, char *argv[])
|
|||||||
if (!g_renderer)
|
if (!g_renderer)
|
||||||
{
|
{
|
||||||
printf ("%s", SDL_GetError ());
|
printf ("%s", SDL_GetError ());
|
||||||
SDL_DestroyWindow (g_window);
|
|
||||||
return false;
|
g_renderer = SDL_CreateRenderer (g_window, -1,
|
||||||
|
SDL_RENDERER_SOFTWARE | SDL_RENDERER_TARGETTEXTURE);
|
||||||
|
if (!g_renderer)
|
||||||
|
{
|
||||||
|
printf ("%s", SDL_GetError ());
|
||||||
|
SDL_DestroyWindow (g_window);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_RenderSetLogicalSize (g_renderer, LXIMAGE, LYIMAGE);
|
SDL_RenderSetLogicalSize (g_renderer, LXIMAGE, LYIMAGE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user