Handle Backend_Init failing
Should really give those render-backend functions a different prefix.
This commit is contained in:
parent
785131a184
commit
c2daebe38a
1 changed files with 3 additions and 0 deletions
|
@ -119,6 +119,9 @@ BOOL StartDirectDraw(SDL_Window *window, int lMagnification)
|
||||||
|
|
||||||
framebuffer = Backend_Init(window);
|
framebuffer = Backend_Init(window);
|
||||||
|
|
||||||
|
if (framebuffer == NULL)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
rgb24_pixel_format = SDL_AllocFormat(SDL_PIXELFORMAT_RGB24);
|
rgb24_pixel_format = SDL_AllocFormat(SDL_PIXELFORMAT_RGB24);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue