From 966f20d305345b3042dc1d37a1dd8833f3a4783b Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Sat, 7 Mar 2026 16:13:34 +0300 Subject: renderer: refactor resources and flags (#13471) --- src/render/gl/GLTexture.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/render/gl/GLTexture.cpp') 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); -- cgit v1.2.3