Also fixed Android's VideoRecorderAppState

experimental
Nehon 10 years ago
parent 50ec3023d4
commit b1739fd9d7
  1. 3
      jme3-android/src/main/java/com/jme3/app/state/VideoRecorderAppState.java

@ -42,6 +42,7 @@ import com.jme3.renderer.queue.RenderQueue;
import com.jme3.system.JmeSystem;
import com.jme3.system.Timer;
import com.jme3.texture.FrameBuffer;
import com.jme3.texture.Image;
import com.jme3.util.AndroidScreenshots;
import com.jme3.util.BufferUtils;
import java.io.File;
@ -234,7 +235,7 @@ public class VideoRecorderAppState extends AbstractAppState {
final WorkItem item = freeItems.take();
usedItems.add(item);
item.buffer.clear();
renderer.readFrameBuffer(out, item.buffer);
renderer.readFrameBufferWithFormat(out, item.buffer, Image.Format.BGRA8);
executor.submit(new Callable<Void>() {
public Void call() throws Exception {

Loading…
Cancel
Save