Jelajahi Sumber

Fix a typo causing mesh attribute instancing to behave weirdly.

Alex Szpakowski 6 tahun lalu
induk
melakukan
157282ec7e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/modules/graphics/opengl/OpenGL.cpp

+ 1 - 1
src/modules/graphics/opengl/OpenGL.cpp

@@ -727,7 +727,7 @@ void OpenGL::setVertexAttributes(const vertex::Attributes &attributes, const ver
 			uint32 divisorbit = divisor << i;
 			instanceattribbits |= divisorbit;
 
-			if ((state.enabledAttribArrays & bit) ^ divisorbit)
+			if ((state.instancedAttribArrays & bit) ^ divisorbit)
 				glVertexAttribDivisor(i, divisor);
 
 			GLboolean normalized = GL_FALSE;