pmaports/hybris/xf86-video-hwcomposer/fix-hwcomposer.patch
Danct12 c79a5df924
hybris/xf86-video-hwcomposer: fix Android-7.1 ports (!931)
* Depend on correct version of libhybris:
  This fixes a very nasty bug where libhybris-9.0 would be
  installed as a dependency of xf86-video-hwcomposer even
  on Android-7.1-based Halium adaptations.
* Add a patch that fixes crash in xf86-video-hwcomposer
  on Andoird-7.1 ports.

Signed-off-by: Danct12 <danct12@disroot.org>
2020-02-15 20:49:41 +01:00

13 lines
497 B
Diff

diff --git a/src/hwcomposer.c b/src/hwcomposer.c
index bb6d204..52e06df 100644
--- a/src/hwcomposer.c
+++ b/src/hwcomposer.c
@@ -123,7 +123,7 @@ Bool hwc_hwcomposer_init(ScrnInfoPtr pScrn)
return hwc_hwcomposer2_init(pScrn);
#endif
- hwc_composer_device_1_t *hwcDevicePtr = (hwc_composer_device_1_t*) hwcDevice;
+ hwc_composer_device_1_t *hwcDevicePtr = hwc->hwcDevicePtr = (hwc_composer_device_1_t*) hwcDevice;
hwc_set_power_mode(pScrn, HWC_DISPLAY_PRIMARY, 1);
uint32_t configs[5];