mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Merge pull request #1412 from sorayuki/master
win-capture: Avoid tex size mismatch for cursor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user