From dc6340bfff13c103397167e4c8028483bb474663 Mon Sep 17 00:00:00 2001 From: fzurita Date: Tue, 2 Feb 2021 23:30:06 -0500 Subject: [PATCH] Fix issue where the barycoords vertex attribute was not being disabled --- src/Graphics/OpenGLContext/opengl_UnbufferedDrawer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Graphics/OpenGLContext/opengl_UnbufferedDrawer.cpp b/src/Graphics/OpenGLContext/opengl_UnbufferedDrawer.cpp index 3c546b32..0737b9e0 100644 --- a/src/Graphics/OpenGLContext/opengl_UnbufferedDrawer.cpp +++ b/src/Graphics/OpenGLContext/opengl_UnbufferedDrawer.cpp @@ -183,8 +183,11 @@ void UnbufferedDrawer::drawLine(f32 _width, SPVertex * _vertices) m_cachedAttribArray->enableVertexAttribArray(triangleAttrib::texcoord, false); m_cachedAttribArray->enableVertexAttribArray(triangleAttrib::modify, false); - if (m_useCoverage) + + if (m_useCoverage) { m_cachedAttribArray->enableVertexAttribArray(triangleAttrib::barycoords, false); + m_cachedAttribArray->enableVertexAttribArray(rectAttrib::barycoords, false); + } m_cachedAttribArray->enableVertexAttribArray(rectAttrib::position, false); m_cachedAttribArray->enableVertexAttribArray(rectAttrib::texcoord0, false);