comparison src/video/x11/SDL_x11render.c @ 4898:164bee619400

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é
author Sam Lantinga <slouken@libsdl.org>
date Mon, 27 Sep 2010 00:49:56 -0700
parents 100f7ab48946
children aa8888658021
comparison
equal deleted inserted replaced
4897:c3eb55210a90 4898:164bee619400
689 if (!data->stencil_pict) { 689 if (!data->stencil_pict) {
690 SDL_SetError("XRenderCreatePicture() failed."); 690 SDL_SetError("XRenderCreatePicture() failed.");
691 return -1; 691 return -1;
692 } 692 }
693 #ifdef SDL_VIDEO_DRIVER_X11_XDAMAGE 693 #ifdef SDL_VIDEO_DRIVER_X11_XDAMAGE
694 XDamageDestroy(data->display, data->stencil_damage);
695 if (data->use_xdamage) { 694 if (data->use_xdamage) {
695 XDamageDestroy(data->display, data->stencil_damage);
696 data->stencil_damage = 696 data->stencil_damage =
697 XDamageCreate(data->display, data->stencil, XDamageReportNonEmpty); 697 XDamageCreate(data->display, data->stencil, XDamageReportNonEmpty);
698 if (!data->stencil_damage) { 698 if (!data->stencil_damage) {
699 SDL_SetError("XDamageCreate() failed."); 699 SDL_SetError("XDamageCreate() failed.");
700 return -1; 700 return -1;