Free surface upon failure
This commit is contained in:
parent
d7c138f818
commit
b8dd512dc4
1 changed files with 2 additions and 0 deletions
|
@ -196,6 +196,8 @@ RenderBackend_Surface* RenderBackend_Init(const char *window_title, int screen_w
|
||||||
{
|
{
|
||||||
Backend_PrintError("Couldn't allocate memory for the GX2 context");
|
Backend_PrintError("Couldn't allocate memory for the GX2 context");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RenderBackend_FreeSurface(framebuffer_surface);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue