diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2026-03-07 16:13:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-07 13:13:34 +0000 |
| commit | 966f20d305345b3042dc1d37a1dd8833f3a4783b (patch) | |
| tree | 3e8515b7a0f6fde7bf3137aac7124ae90e5951ec /src/render/gl/GLTexture.cpp | |
| parent | 32e75e3e320fb66ab517a378df645f3d29b3a209 (diff) | |
renderer: refactor resources and flags (#13471)
Diffstat (limited to 'src/render/gl/GLTexture.cpp')
| -rw-r--r-- | src/render/gl/GLTexture.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/gl/GLTexture.cpp b/src/render/gl/GLTexture.cpp index 6a1fb172..9c7ddc35 100644 --- a/src/render/gl/GLTexture.cpp +++ b/src/render/gl/GLTexture.cpp @@ -13,7 +13,7 @@ CGLTexture::~CGLTexture() { if (!g_pCompositor || g_pCompositor->m_isShuttingDown || !g_pHyprRenderer) return; - g_pHyprRenderer->makeEGLCurrent(); + g_pHyprOpenGL->makeEGLCurrent(); if (m_texID) { GLCALL(glDeleteTextures(1, &m_texID)); m_texID = 0; @@ -28,7 +28,7 @@ CGLTexture::~CGLTexture() { CGLTexture::CGLTexture(uint32_t drmFormat, uint8_t* pixels, uint32_t stride, const Vector2D& size_, bool keepDataCopy, bool opaque) : ITexture(drmFormat, pixels, stride, size_, keepDataCopy, opaque) { - g_pHyprRenderer->makeEGLCurrent(); + g_pHyprOpenGL->makeEGLCurrent(); const auto format = NFormatUtils::getPixelFormatFromDRM(drmFormat); ASSERT(format); @@ -120,7 +120,7 @@ void CGLTexture::update(uint32_t drmFormat, uint8_t* pixels, uint32_t stride, co if (damage.empty()) return; - g_pHyprRenderer->makeEGLCurrent(); + g_pHyprOpenGL->makeEGLCurrent(); const auto format = NFormatUtils::getPixelFormatFromDRM(drmFormat); ASSERT(format); |
