mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-21 14:52:04 +00:00
[client] wayland: retain coherent HDR state on failure
Keep the reference white associated with the active PQ description until a replacement is ready. If asynchronous description creation fails, the renderer now retains the complete previous HDR state instead of combining new white-level values with stale compositor metadata.
This commit is contained in:
@@ -222,9 +222,11 @@ struct WaylandDSState
|
||||
_Atomic(bool) hdrActivePQ;
|
||||
_Atomic(bool) hdrRequested;
|
||||
_Atomic(bool) hdrRequestedPQ;
|
||||
bool hdrImageDescPQ;
|
||||
bool hdrImageDescReady;
|
||||
LG_Lock hdrLock;
|
||||
bool hdrImageDescPQ;
|
||||
bool hdrImageDescReady;
|
||||
uint32_t hdrImageDescWhiteLevel;
|
||||
_Atomic(uint32_t) hdrActivePQWhiteLevel;
|
||||
LG_Lock hdrLock;
|
||||
|
||||
// wp_color_manager_v1 feature advertisement tracking.
|
||||
// Set to true after the done event for the color-manager has been received
|
||||
|
||||
Reference in New Issue
Block a user