Browse Source

Morph shape vertex buffer is now properly bound for rendering

BearishSun 9 years ago
parent
commit
c5ab4c865e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/BansheeEngine/Source/BsRendererUtility.cpp

+ 3 - 0
Source/BansheeEngine/Source/BsRendererUtility.cpp

@@ -319,6 +319,9 @@ namespace BansheeEngine
 			endSlot = std::max(iter->first, endSlot);
 		}
 
+		startSlot = std::min(1U, startSlot);
+		endSlot = std::max(1U, endSlot);
+
 		for (auto iter = meshBuffers.begin(); iter != meshBuffers.end(); ++iter)
 			allBuffers[iter->first - startSlot] = iter->second;