1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Fix issue where the barycoords vertex attribute was not being disabled

This commit is contained in:
fzurita 2021-02-02 23:30:06 -05:00 committed by Sergey Lipskiy
parent c92d13c094
commit dc6340bfff

View File

@ -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);