diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2025-01-07 21:32:50 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-07 18:32:50 +0000 |
| commit | 830350a1f7a5ad653f33f2c62dd1694249a2f1e2 (patch) | |
| tree | 360ad27b49238cacf999f3ab0a8fbbdee9c8251c /src/render/pass/SurfacePassElement.cpp | |
| parent | 95542e44884d2131a742f92013826a0b5f341b33 (diff) | |
core: Add support for HDR and color management protocols (#8715)
Diffstat (limited to 'src/render/pass/SurfacePassElement.cpp')
| -rw-r--r-- | src/render/pass/SurfacePassElement.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/pass/SurfacePassElement.cpp b/src/render/pass/SurfacePassElement.cpp index f2f2627a..71aa26be 100644 --- a/src/render/pass/SurfacePassElement.cpp +++ b/src/render/pass/SurfacePassElement.cpp @@ -79,6 +79,8 @@ void CSurfacePassElement::draw(const CRegion& damage) { DELTALESSTHAN(windowBox.height, data.surface->current.bufferSize.y, 3) /* off by one-or-two */ && (!data.pWindow || (!data.pWindow->m_vRealSize->isBeingAnimated() && !INTERACTIVERESIZEINPROGRESS)) /* not window or not animated/resizing */; + if (data.surface->colorManagement.valid()) + Debug::log(TRACE, "FIXME: rendering surface with color management enabled, should apply necessary transformations"); g_pHyprRenderer->calculateUVForSurface(data.pWindow, data.surface, data.pMonitor->self.lock(), data.mainSurface, windowBox.size(), PROJSIZEUNSCALED, MISALIGNEDFSV1); // check for fractional scale surfaces misaligning the buffer size |
