diff options
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); |
