Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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?
  • Loading branch information
slouken committed Sep 27, 2010
1 parent 8ab485e commit b909eb7b32ebed2dae6987f9ce3d8f5abdfae2d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/x11/SDL_x11render.c
@@ -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) {

0 comments on commit b909eb7

Please sign in to comment.