summaryrefslogtreecommitdiff
path: root/src/render/gl
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2026-03-07 16:13:34 +0300
committerGitHub <noreply@github.com>2026-03-07 13:13:34 +0000
commit966f20d305345b3042dc1d37a1dd8833f3a4783b (patch)
tree3e8515b7a0f6fde7bf3137aac7124ae90e5951ec /src/render/gl
parent32e75e3e320fb66ab517a378df645f3d29b3a209 (diff)
renderer: refactor resources and flags (#13471)
Diffstat (limited to 'src/render/gl')
-rw-r--r--src/render/gl/GLFramebuffer.cpp4
-rw-r--r--src/render/gl/GLRenderbuffer.cpp4
-rw-r--r--src/render/gl/GLTexture.cpp6
3 files changed, 7 insertions, 7 deletions
diff --git a/src/render/gl/GLFramebuffer.cpp b/src/render/gl/GLFramebuffer.cpp
index d821f766..39bfba7f 100644
--- a/src/render/gl/GLFramebuffer.cpp
+++ b/src/render/gl/GLFramebuffer.cpp
@@ -8,7 +8,7 @@ CGLFramebuffer::CGLFramebuffer() : IFramebuffer() {}
CGLFramebuffer::CGLFramebuffer(const std::string& name) : IFramebuffer(name) {}
bool CGLFramebuffer::internalAlloc(int w, int h, uint32_t drmFormat) {
- g_pHyprRenderer->makeEGLCurrent();
+ g_pHyprOpenGL->makeEGLCurrent();
bool firstAlloc = false;
@@ -108,7 +108,7 @@ bool CGLFramebuffer::readPixels(CHLBufferReference buffer, uint32_t offsetX, uin
return false;
}
- g_pHyprRenderer->makeEGLCurrent();
+ g_pHyprOpenGL->makeEGLCurrent();
glBindFramebuffer(GL_READ_FRAMEBUFFER, getFBID());
bind();
diff --git a/src/render/gl/GLRenderbuffer.cpp b/src/render/gl/GLRenderbuffer.cpp
index 8299d0e4..494a81d9 100644
--- a/src/render/gl/GLRenderbuffer.cpp
+++ b/src/render/gl/GLRenderbuffer.cpp
@@ -15,7 +15,7 @@ CGLRenderbuffer::~CGLRenderbuffer() {
if (!g_pCompositor || g_pCompositor->m_isShuttingDown || !g_pHyprRenderer)
return;
- g_pHyprRenderer->makeEGLCurrent();
+ g_pHyprOpenGL->makeEGLCurrent();
unbind();
m_framebuffer->release();
@@ -62,7 +62,7 @@ CGLRenderbuffer::CGLRenderbuffer(SP<Aquamarine::IBuffer> buffer, uint32_t format
}
void CGLRenderbuffer::bind() {
- g_pHyprRenderer->makeEGLCurrent();
+ g_pHyprOpenGL->makeEGLCurrent();
m_framebuffer->bind();
}
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);