mirror of
https://github.com/yawut/SDL.git
synced 2026-08-23 17:25:26 -05:00
Fixed crash when resizing the window with the software renderer.
This is similar to the crash fix in the OpenGL renderer in revision 4187
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user