Browse Source

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

Krimo 1 year ago
parent
commit
4d8f0f6713
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/renderer_gl.cpp

+ 4 - 0
src/renderer_gl.cpp

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