diff options
author | Vaxry <[email protected]> | 2023-12-05 15:41:17 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2023-12-05 15:41:17 +0000 |
commit | 37d7a8c64dfabfe81330c819c24fd6b13b292194 (patch) | |
tree | 0bbbd38d1d1e17dc564c4a231c16af031c84c303 | |
parent | da863459c49c8b9a82e6a1180c2592a2b63feccd (diff) | |
download | Hyprland-37d7a8c64dfabfe81330c819c24fd6b13b292194.tar.gz Hyprland-37d7a8c64dfabfe81330c819c24fd6b13b292194.zip |
framebuffer: ignore addStencil on legacyRenderer
ref #4044
-rw-r--r-- | src/render/Framebuffer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Framebuffer.cpp b/src/render/Framebuffer.cpp index eed23699..d35e5119 100644 --- a/src/render/Framebuffer.cpp +++ b/src/render/Framebuffer.cpp @@ -57,6 +57,8 @@ bool CFramebuffer::alloc(int w, int h, uint32_t drmFormat) { } void CFramebuffer::addStencil() { + // TODO: Allow this with gles2 +#ifndef GLES2 glBindTexture(GL_TEXTURE_2D, m_pStencilTex->m_iTexID); glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH24_STENCIL8, m_vSize.x, m_vSize.y, 0, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, 0); @@ -69,6 +71,7 @@ void CFramebuffer::addStencil() { glBindTexture(GL_TEXTURE_2D, 0); glBindFramebuffer(GL_FRAMEBUFFER, g_pHyprOpenGL->m_iCurrentOutputFb); +#endif } void CFramebuffer::bind() { |