Nicolas Cannasse %!s(int64=5) %!d(string=hai) anos
pai
achega
fe8e6c6d06
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;