Commit e2b5e827 authored by Sam Lantinga's avatar Sam Lantinga

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é
parent bbf32799
......@@ -691,8 +691,8 @@ X11_DisplayModeChanged(SDL_Renderer * renderer)
return -1;
}
#ifdef SDL_VIDEO_DRIVER_X11_XDAMAGE
XDamageDestroy(data->display, data->stencil_damage);
if (data->use_xdamage) {
XDamageDestroy(data->display, data->stencil_damage);
data->stencil_damage =
XDamageCreate(data->display, data->stencil, XDamageReportNonEmpty);
if (!data->stencil_damage) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment