mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-26 19:09:48 +01:00
debug: fix overlay not rendering
This commit is contained in:
parent
dddb64dc35
commit
2eaa4d80a0
1 changed files with 6 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
||||||
#include "HyprDebugOverlay.hpp"
|
#include "HyprDebugOverlay.hpp"
|
||||||
#include "config/ConfigValue.hpp"
|
#include "config/ConfigValue.hpp"
|
||||||
#include "../Compositor.hpp"
|
#include "../Compositor.hpp"
|
||||||
|
#include "../render/pass/TexPassElement.hpp"
|
||||||
|
#include "../render/Renderer.hpp"
|
||||||
|
|
||||||
CHyprDebugOverlay::CHyprDebugOverlay() {
|
CHyprDebugOverlay::CHyprDebugOverlay() {
|
||||||
m_pTexture = makeShared<CTexture>();
|
m_pTexture = makeShared<CTexture>();
|
||||||
|
@ -268,6 +270,8 @@ void CHyprDebugOverlay::draw() {
|
||||||
|
|
||||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y, 0, GL_RGBA, GL_UNSIGNED_BYTE, DATA);
|
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y, 0, GL_RGBA, GL_UNSIGNED_BYTE, DATA);
|
||||||
|
|
||||||
CBox pMonBox = {0, 0, PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y};
|
CTexPassElement::SRenderData data;
|
||||||
g_pHyprOpenGL->renderTexture(m_pTexture, &pMonBox, 1.f);
|
data.tex = m_pTexture;
|
||||||
|
data.box = {0, 0, PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y};
|
||||||
|
g_pHyprRenderer->m_sRenderPass.add(makeShared<CTexPassElement>(data));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue