Browse Source

track allocation position for BigTexture

Nicolas Cannasse 9 years ago
parent
commit
967ad80481
1 changed files with 2 additions and 2 deletions
  1. 2 2
      h3d/mat/BigTexture.hx

+ 2 - 2
h3d/mat/BigTexture.hx

@@ -50,11 +50,11 @@ class BigTexture {
 	var waitTimer : haxe.Timer;
 	var lastEvent : Float;
 
-	public function new(id, size, bgColor = 0xFF8080FF) {
+	public function new(id, size, bgColor = 0xFF8080FF, ?allocPos : h3d.impl.AllocPos ) {
 		this.id = id;
 		this.size = size;
 		space = new QuadTree(0,0,size,size);
-		tex = new h3d.mat.Texture(1, 1);
+		tex = new h3d.mat.Texture(1, 1, allocPos);
 		tex.clear(bgColor);
 		pending = [];
 	}