|
@@ -1276,7 +1276,7 @@ class GlDriver extends Driver {
|
|
if( curTarget == null )
|
|
if( curTarget == null )
|
|
throw "Can't capture main render buffer in GL";
|
|
throw "Can't capture main render buffer in GL";
|
|
#if (js || hl)
|
|
#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;
|
|
@:privateAccess pixels.innerFormat = curTarget.format;
|
|
pixels.flags.set(FlipY);
|
|
pixels.flags.set(FlipY);
|
|
#end
|
|
#end
|