diff options
author | Vaxry <[email protected]> | 2024-11-11 15:44:41 +0000 |
---|---|---|
committer | Mihai Fufezan <[email protected]> | 2024-11-14 12:59:23 +0200 |
commit | 66880afcb473a02d3bc63338eb48edc9eb9d3935 (patch) | |
tree | 5cba67c149f4e9346072eb3e0ff11bbe9f8ca903 /src/render/Texture.cpp | |
parent | bf6d425bba3bc96432883db75038b027f25ddf93 (diff) | |
download | Hyprland-66880afcb473a02d3bc63338eb48edc9eb9d3935.tar.gz Hyprland-66880afcb473a02d3bc63338eb48edc9eb9d3935.zip |
e
Diffstat (limited to 'src/render/Texture.cpp')
-rw-r--r-- | src/render/Texture.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/Texture.cpp b/src/render/Texture.cpp index 4231dc17..633f0212 100644 --- a/src/render/Texture.cpp +++ b/src/render/Texture.cpp @@ -17,7 +17,7 @@ CTexture::~CTexture() { destroyTexture(); } -CTexture::CTexture(uint32_t drmFormat, uint8_t* pixels, uint32_t stride, const Vector2D& size_, bool keepDataCopy) : m_bKeepDataCopy(keepDataCopy) { +CTexture::CTexture(uint32_t drmFormat, uint8_t* pixels, uint32_t stride, const Vector2D& size_, bool keepDataCopy) : m_iDrmFormat(drmFormat), m_bKeepDataCopy(keepDataCopy) { createFromShm(drmFormat, pixels, stride, size_); } @@ -44,6 +44,8 @@ CTexture::CTexture(const SP<Aquamarine::IBuffer> buffer, bool keepDataCopy) : m_ auto [pixelData, fmt, bufLen] = buffer->beginDataPtr(0); + m_iDrmFormat = fmt; + createFromShm(fmt, pixelData, bufLen, shm.size); return; } |