Nicolas Cannasse 7 anni fa
parent
commit
458989acbe
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      h3d/impl/GlDriver.hx

+ 1 - 1
h3d/impl/GlDriver.hx

@@ -1276,7 +1276,7 @@ class GlDriver extends Driver {
 		if( curTarget == null )
 			throw "Can't capture main render buffer in GL";
 		#if (js || hl)
-		gl.readPixels(0, 0, pixels.width, pixels.height, getChannels(curTarget), curTarget.t.pixelFmt, @:privateAccess pixels.bytes.b);
+		gl.readPixels(0, 0, pixels.width, pixels.height, getChannels(curTarget.t), curTarget.t.pixelFmt, @:privateAccess pixels.bytes.b);
 		@:privateAccess pixels.innerFormat = curTarget.format;
 		pixels.flags.set(FlipY);
 		#end