backend: xrender: fix array size off-by-one

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-11-18 21:07:01 +00:00
parent 896fe20098
commit 8b37fcb1d8
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 2 additions and 2 deletions

View File

@ -37,11 +37,11 @@ typedef struct _xrender_data {
xcb_render_picture_t back[3]; xcb_render_picture_t back[3];
/// The back buffer that is for temporary use /// The back buffer that is for temporary use
/// Age of each back buffer. /// Age of each back buffer.
int buffer_age[2]; int buffer_age[3];
/// The back buffer we should be painting into /// The back buffer we should be painting into
int curr_back; int curr_back;
/// The corresponding pixmap to the back buffer /// The corresponding pixmap to the back buffer
xcb_pixmap_t back_pixmap[2]; xcb_pixmap_t back_pixmap[3];
/// The original root window content, usually the wallpaper. /// The original root window content, usually the wallpaper.
/// We save it so we don't loss the wallpaper when we paint over /// We save it so we don't loss the wallpaper when we paint over
/// it. /// it.