Fixed crash when resizing the window with the software renderer.
This is similar to the crash fix in the OpenGL renderer in revision 4187 --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403367
This commit is contained in:
parent
03f292e261
commit
1ebf771a53
1 changed files with 2 additions and 1 deletions
|
@ -360,8 +360,9 @@ SW_DisplayModeChanged(SDL_Renderer * renderer)
|
|||
return -1;
|
||||
}
|
||||
}
|
||||
/* Rebind the context to the window area */
|
||||
data->updateSize = SDL_TRUE;
|
||||
return 0;
|
||||
return SW_ActivateRenderer(renderer);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue