# HG changeset patch # User Sam Lantinga # Date 1285573796 25200 # Node ID 164bee619400f08318a4f98d122d5754b6796203 # Parent c3eb55210a90d30dddfd13118c1bdb0f3ece8b8d 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é diff -r c3eb55210a90 -r 164bee619400 src/video/x11/SDL_x11render.c --- a/src/video/x11/SDL_x11render.c Mon Sep 27 00:49:34 2010 -0700 +++ b/src/video/x11/SDL_x11render.c Mon Sep 27 00:49:56 2010 -0700 @@ -691,8 +691,8 @@ 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) {