mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-27 22:31:07 +00:00
Change SDL renderer creation error to a fatal one and also include why SDL failed the call
This commit is contained in:
parent
5e35077364
commit
bf68f1a851
1 changed files with 3 additions and 2 deletions
|
@ -282,9 +282,10 @@ uint8_t *I_PolyPresentLock(int w, int h, bool vsync, int &pitch)
|
||||||
{
|
{
|
||||||
polyvsync = vsync;
|
polyvsync = vsync;
|
||||||
|
|
||||||
if ((polyrendertarget = SDL_CreateRenderer(Priv::window, -1, vsync ? SDL_RENDERER_PRESENTVSYNC : 0)) == nullptr)
|
polyrendertarget = SDL_CreateRenderer(Priv::window, -1, vsync ? SDL_RENDERER_PRESENTVSYNC : 0);
|
||||||
|
if (!polyrendertarget)
|
||||||
{
|
{
|
||||||
I_Error("Could not create render target for softpoly.");
|
I_FatalError("Could not create render target for softpoly: %s\n", SDL_GetError());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tell the user which render driver is being used, but don't repeat
|
// Tell the user which render driver is being used, but don't repeat
|
||||||
|
|
Loading…
Reference in a new issue