diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-29 13:27:40 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-29 13:27:40 +0200 |
| commit | f61a714320f789f4bb65d0ae6d5ff2fe945cfb29 (patch) | |
| tree | 882c1d4325927710e0e4c289d21f21dc7f4aafc2 /src/render/Framebuffer.cpp | |
| parent | 77818e34578769c25bb978553f076d25704914b6 (diff) | |
renderer: cleanup old redundancies in CFramebuffer
Diffstat (limited to 'src/render/Framebuffer.cpp')
| -rw-r--r-- | src/render/Framebuffer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/Framebuffer.cpp b/src/render/Framebuffer.cpp index 32d2361b..7cd91a04 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 || m_Size != Vector2D(w, h)) { + if (firstAlloc || m_vSize != 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); @@ -48,7 +48,7 @@ bool CFramebuffer::alloc(int w, int h) { glBindTexture(GL_TEXTURE_2D, 0); glBindFramebuffer(GL_FRAMEBUFFER, g_pHyprOpenGL->m_iCurrentOutputFb); - m_Size = Vector2D(w, h); + m_vSize = Vector2D(w, h); return true; } @@ -73,7 +73,7 @@ void CFramebuffer::release() { m_cTex.m_iTexID = 0; m_iFb = -1; - m_Size = Vector2D(); + m_vSize = Vector2D(); } CFramebuffer::~CFramebuffer() { |
