Nicolas Cannasse 5 years ago
parent
commit
fe8e6c6d06
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/impl/MemoryManager.hx

+ 1 - 1
h3d/impl/MemoryManager.hx

@@ -131,7 +131,7 @@ class MemoryManager {
 	function allocBuffer( b : Buffer, stride : Int ) {
 		// split big buffers
 		var max = b.flags.has(Quads) ? 65532 : b.flags.has(Triangles) ? 65533 : 65534;
-		if( b.vertices > max ) {
+		if( b.vertices > max && !b.flags.has(UniformBuffer) ) {
 			if( max == 65534 )
 				throw "Cannot split buffer with "+b.vertices+" vertices if it's not Quads/Triangles";
 			var rem = b.vertices - max;