summaryrefslogtreecommitdiff
path: root/src/render/Texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/Texture.cpp')
-rw-r--r--src/render/Texture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/Texture.cpp b/src/render/Texture.cpp
index 17c416c7..f1704afa 100644
--- a/src/render/Texture.cpp
+++ b/src/render/Texture.cpp
@@ -36,7 +36,7 @@ CTexture::CTexture(const SP<Aquamarine::IBuffer> buffer, bool keepDataCopy) : m_
auto shm = buffer->shm();
if (!shm.success) {
- Debug::log(ERR, "Cannot create a texture: buffer has no dmabuf or shm");
+ Log::logger->log(Log::ERR, "Cannot create a texture: buffer has no dmabuf or shm");
return;
}
@@ -51,7 +51,7 @@ CTexture::CTexture(const SP<Aquamarine::IBuffer> buffer, bool keepDataCopy) : m_
auto image = g_pHyprOpenGL->createEGLImage(buffer->dmabuf());
if (!image) {
- Debug::log(ERR, "Cannot create a texture: failed to create an EGLImage");
+ Log::logger->log(Log::ERR, "Cannot create a texture: failed to create an EGLImage");
return;
}
@@ -91,7 +91,7 @@ void CTexture::createFromShm(uint32_t drmFormat, uint8_t* pixels, uint32_t strid
void CTexture::createFromDma(const Aquamarine::SDMABUFAttrs& attrs, void* image) {
if (!g_pHyprOpenGL->m_proc.glEGLImageTargetTexture2DOES) {
- Debug::log(ERR, "Cannot create a dmabuf texture: no glEGLImageTargetTexture2DOES");
+ Log::logger->log(Log::ERR, "Cannot create a dmabuf texture: no glEGLImageTargetTexture2DOES");
return;
}