Browse Source

fixed getMemSize() with low precision

Nicolas Cannasse 2 years ago
parent
commit
970473de6d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/Buffer.hx

+ 1 - 1
h3d/Buffer.hx

@@ -46,7 +46,7 @@ class Buffer {
 	}
 
 	public inline function getMemSize() {
-		return vertices * (format.stride << 2);
+		return vertices * format.strideBytes;
 	}
 
 	public inline function isDisposed() {