瀏覽代碼

removed antiAlias in resize (will be added back later)

Nicolas Cannasse 12 年之前
父節點
當前提交
0464130c19
共有 3 個文件被更改,包括 5 次插入4 次删除
  1. 1 1
      h3d/impl/Driver.hx
  2. 1 1
      h3d/impl/GlDriver.hx
  3. 3 2
      h3d/impl/Stage3dDriver.hx

+ 1 - 1
h3d/impl/Driver.hx

@@ -40,7 +40,7 @@ class Driver {
 	public function init( onCreate : Bool -> Void, forceSoftware = false ) {
 	}
 	
-	public function resize( width : Int, height : Int, aa : Int ) {
+	public function resize( width : Int, height : Int ) {
 	}
 	
 	public function selectMaterial( mbits : Int ) {

+ 1 - 1
h3d/impl/GlDriver.hx

@@ -102,7 +102,7 @@ class GlDriver extends Driver {
 		gl.clear(GL.COLOR_BUFFER_BIT|GL.DEPTH_BUFFER_BIT);
 	}
 	
-	override function resize(width, height, aa:Int) {
+	override function resize(width, height) {
 		#if js
 		canvas.width = width;
 		canvas.height = height;

+ 3 - 2
h3d/impl/Stage3dDriver.hx

@@ -46,6 +46,7 @@ class Stage3dDriver extends Driver {
 	var curTextures : Array<h3d.mat.Texture>;
 	var curSamplerBits : Array<Int>;
 	var inTarget : Bool;
+	var antiAlias : Int;
 	
 	@:allow(h3d.impl.VertexWrapper)
 	var empty : flash.utils.ByteArray;
@@ -98,8 +99,8 @@ class Stage3dDriver extends Driver {
 		return ctx != null && ctx.driverInfo.toLowerCase().indexOf("software") == -1;
 	}
 	
-	override function resize(width, height, aa) {
-		ctx.configureBackBuffer(width, height, aa);
+	override function resize(width, height) {
+		ctx.configureBackBuffer(width, height, antiAlias);
 	}
 	
 	override function clear(r, g, b, a) {