mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-22 07:12:04 +00:00
[client] egl: fix SPICE video rendering to a HDR surface
If the last state had HDR enabled, the spice video surface was being rendered as HDR even though the SPICE video content is SDR. This corrects this.
This commit is contained in:
@@ -619,8 +619,8 @@ static bool egl_updateHDRState(struct Inst * this, bool force)
|
||||
app_getProp(LG_DS_NATIVE_HDR, &nativeHDR);
|
||||
const bool surfaceCompatible = this->format.hdrPQ ?
|
||||
this->surfaceSupportsPQ : this->surfaceSupportsSCRGB;
|
||||
const bool useNativeHDR = this->format.hdr && surfaceCompatible && nativeHDR &&
|
||||
!app_getHDRDescFailed();
|
||||
const bool useNativeHDR = !this->showSpice && this->format.hdr &&
|
||||
surfaceCompatible && nativeHDR && !app_getHDRDescFailed();
|
||||
|
||||
if (!force && this->nativeHDR == useNativeHDR)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user