XDamageDestroy is called before use_damage is tested. This crashes on my
setup. The patch calls XDamageDestroy only when use_damage is true. Kind regards, André
This commit is contained in:
parent
bbf3279972
commit
e2b5e8275b
1 changed files with 1 additions and 1 deletions
|
@ -691,8 +691,8 @@ X11_DisplayModeChanged(SDL_Renderer * renderer)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#ifdef SDL_VIDEO_DRIVER_X11_XDAMAGE
|
#ifdef SDL_VIDEO_DRIVER_X11_XDAMAGE
|
||||||
XDamageDestroy(data->display, data->stencil_damage);
|
|
||||||
if (data->use_xdamage) {
|
if (data->use_xdamage) {
|
||||||
|
XDamageDestroy(data->display, data->stencil_damage);
|
||||||
data->stencil_damage =
|
data->stencil_damage =
|
||||||
XDamageCreate(data->display, data->stencil, XDamageReportNonEmpty);
|
XDamageCreate(data->display, data->stencil, XDamageReportNonEmpty);
|
||||||
if (!data->stencil_damage) {
|
if (!data->stencil_damage) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue