mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
multi-gpu: do not flip screens on secondary GPU
All screens on secondary GPU in multiple GPU configurations was flipped 180. The flipped screens was always on secondary card (the primary card was always correct). Tested on nouveau with: WLR_DRM_DEVICES=/dev/dri/card1:/dev/dri/card2 WLR_DRM_DEVICES=/dev/dri/card2:/dev/dri/card1 The commit is fixing this problem. Now all screens are "normal".
This commit is contained in:
parent
ad406db21c
commit
e547e55be0
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ struct gbm_bo *copy_drm_surface_mgpu(struct wlr_drm_surface *dest,
|
|||
assert(tex);
|
||||
|
||||
float mat[9];
|
||||
wlr_matrix_projection(mat, 1, 1, WL_OUTPUT_TRANSFORM_FLIPPED_180);
|
||||
wlr_matrix_projection(mat, 1, 1, WL_OUTPUT_TRANSFORM_NORMAL);
|
||||
|
||||
struct wlr_renderer *renderer = dest->renderer->wlr_rend;
|
||||
wlr_renderer_begin(renderer, dest->width, dest->height);
|
||||
|
|
Loading…
Reference in a new issue