summaryrefslogtreecommitdiff
path: root/src/render/gl
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/gl')
-rw-r--r--src/render/gl/GLFramebuffer.cpp2
-rw-r--r--src/render/gl/GLTexture.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/render/gl/GLFramebuffer.cpp b/src/render/gl/GLFramebuffer.cpp
index 3881c6f6..59c0c4e3 100644
--- a/src/render/gl/GLFramebuffer.cpp
+++ b/src/render/gl/GLFramebuffer.cpp
@@ -16,7 +16,7 @@ bool CGLFramebuffer::internalAlloc(int w, int h, uint32_t drmFormat) {
if (!m_tex) {
m_tex = g_pHyprRenderer->createTexture();
- m_tex->allocate({w, h});
+ m_tex->allocate({w, h}, drmFormat);
m_tex->bind();
m_tex->setTexParameter(GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
m_tex->setTexParameter(GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
diff --git a/src/render/gl/GLTexture.cpp b/src/render/gl/GLTexture.cpp
index 22bb8146..3216290e 100644
--- a/src/render/gl/GLTexture.cpp
+++ b/src/render/gl/GLTexture.cpp
@@ -84,7 +84,7 @@ CGLTexture::CGLTexture(const Aquamarine::SDMABUFAttrs& attrs, void* image, bool
m_type = isDrmFormatOpaque(attrs.format) ? TEXTURE_RGBX : TEXTURE_RGBA;
//}
- allocate(attrs.size);
+ allocate(attrs.size, attrs.format);
m_eglImage = image;
bind();