diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-09 15:01:28 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-09 15:01:28 +0200 |
| commit | b7094200f6f4b24026cd1e0458ed0d75a34d50ef (patch) | |
| tree | df4d9aa649996bba0d0b6df27b4d633ed5c5843b /src/render/Framebuffer.cpp | |
| parent | eea92231fa921419403782097898600b1e845b3b (diff) | |
Rendering now to a HyprFramebuffer
Diffstat (limited to 'src/render/Framebuffer.cpp')
| -rw-r--r-- | src/render/Framebuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Framebuffer.cpp b/src/render/Framebuffer.cpp index 8ab03776..85e1f7ca 100644 --- a/src/render/Framebuffer.cpp +++ b/src/render/Framebuffer.cpp @@ -20,7 +20,7 @@ bool CFramebuffer::alloc(int w, int h) { glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); } - if (firstAlloc) + if (firstAlloc || m_Size != Vector2D(w, h)) { glBindTexture(GL_TEXTURE_2D, m_cTex.m_iTexID); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0); |
