Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
XDamageDestroy is called before use_damage is tested. This crashes on my
Browse files Browse the repository at this point in the history
setup. The patch calls XDamageDestroy only when use_damage is true.

Kind regards,

Andr?
  • Loading branch information
slouken committed Sep 27, 2010
1 parent 8ab485e commit b909eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11render.c
Expand Up @@ -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) {
Expand Down

0 comments on commit b909eb7

Please sign in to comment.