Fix vertex attributes having incorrect state when restarting BGFX. (#3267)

This commit is contained in:
Krimo 2024-03-10 14:41:21 +00:00 committed by GitHub
parent 56ad576dcd
commit 4d8f0f6713
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2265,6 +2265,10 @@ namespace bgfx { namespace gl
ErrorState::Enum errorState = ErrorState::Default;
s_currentlyEnabledVertexAttribArrays = 0;
s_vertexAttribArraysPendingDisable = 0;
s_vertexAttribArraysPendingEnable = 0;
if (_init.debug
|| _init.profile)
{