From a649be64db7c66eee5ed26e26ea3f5aeb45552d8 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 30 Jan 2024 16:19:08 +0100 Subject: [PATCH] backends/drm: use the correct uniform type --- src/backends/drm/drm_egl_layer_surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/drm_egl_layer_surface.cpp b/src/backends/drm/drm_egl_layer_surface.cpp index 33dd356ae9..194d790ddf 100644 --- a/src/backends/drm/drm_egl_layer_surface.cpp +++ b/src/backends/drm/drm_egl_layer_surface.cpp @@ -155,7 +155,7 @@ bool EglGbmLayerSurface::endRendering(const QRegion &damagedRegion) if (m_surface->iccShader) { m_surface->iccShader->setUniforms(m_surface->iccProfile, m_surface->intermediaryColorDescription.sdrBrightness(), m_surface->channelFactors); } else { - QMatrix3x3 ctm; + QMatrix4x4 ctm; ctm(0, 0) = m_surface->channelFactors.x(); ctm(1, 1) = m_surface->channelFactors.y(); ctm(2, 2) = m_surface->channelFactors.z();