From de3a3adf345c19c3146d77648b75f5aaba47108d Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sun, 7 Mar 2021 16:07:43 -0800 Subject: [PATCH] Fixed wrong function call. --- common/lc_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lc_context.cpp b/common/lc_context.cpp index bd212f22..a2b9e81b 100644 --- a/common/lc_context.cpp +++ b/common/lc_context.cpp @@ -951,7 +951,7 @@ void lcContext::SetVertexFormat(int BufferOffset, int PositionSize, int NormalSi } else if (mNormalEnabled) { - glDisableClientState(GL_NORMAL_ARRAY); + glDisableVertexAttribArray(LC_ATTRIB_NORMAL); mNormalEnabled = false; }