diff options
| author | Felix Dick <felix.dick@web.de> | 2022-10-10 01:46:22 +0200 |
|---|---|---|
| committer | Felix Dick <felix.dick@web.de> | 2022-10-10 02:45:40 +0200 |
| commit | 7e781f24c5140e3554a45ff236a339647fba1c34 (patch) | |
| tree | 4c4effecfdc5192387eb80c033e09e6f8719e171 /src/render/OpenGL.cpp | |
| parent | 3bf7c5aea1d20cc6a0fc95f920111548e7863af9 (diff) | |
| parent | cb687c208c116ea870f827d8b2ee963655599f1f (diff) | |
Merge branch 'main' into simplify_matrix_calculations
Diffstat (limited to 'src/render/OpenGL.cpp')
| -rw-r--r-- | src/render/OpenGL.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 8a51a83a..e0cb28e2 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -528,7 +528,6 @@ CFramebuffer* CHyprOpenGLImpl::blurMainFramebufferWithDamage(float a, wlr_box* p float glMatrix[9]; wlr_matrix_multiply(glMatrix, m_RenderData.projection, matrix); - wlr_matrix_transpose(glMatrix, glMatrix); // get the config settings static auto *const PBLURSIZE = &g_pConfigManager->getConfigValuePtr("decoration:blur_size")->intValue; @@ -1278,7 +1277,15 @@ void CHyprOpenGLImpl::clearWithTex() { static auto *const PRENDERTEX = &g_pConfigManager->getConfigValuePtr("misc:disable_hyprland_logo")->intValue; if (!*PRENDERTEX) { - renderTexture(m_mMonitorBGTextures[m_RenderData.pMonitor], &m_mMonitorRenderResources[m_RenderData.pMonitor].backgroundTexBox, 255, 0); + auto TEXIT = m_mMonitorBGTextures.find(m_RenderData.pMonitor); + + if (TEXIT == m_mMonitorBGTextures.end()) { + createBGTextureForMonitor(m_RenderData.pMonitor); + TEXIT = m_mMonitorBGTextures.find(m_RenderData.pMonitor); + } + + if (TEXIT != m_mMonitorBGTextures.end()) + renderTexture(TEXIT->second, &m_mMonitorRenderResources[m_RenderData.pMonitor].backgroundTexBox, 255, 0); } } |
