Merge pull request #1412 from sorayuki/master

win-capture: Avoid tex size mismatch for cursor
master
Jim 2018-08-07 02:35:30 -07:00 committed by GitHub
commit a00c487670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ static inline bool cursor_capture_icon(struct cursor_data *data, HICON icon)
bitmap = cursor_capture_icon_bitmap(&ii, &width, &height);
if (bitmap) {
if (data->last_cx != width && data->last_cy != height) {
if (data->last_cx != width || data->last_cy != height) {
data->texture = get_cached_texture(data, width, height);
data->last_cx = width;
data->last_cy = height;