Flush GL pipeline for pbuffer after frame (required because there's no backbuffer)

experimental
shadowislord 10 years ago
parent 82901bb486
commit b04c4ad042
  1. 4
      jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java

@ -126,6 +126,10 @@ public class LwjglOffscreenBuffer extends LwjglContext implements Runnable {
checkGLError(); checkGLError();
renderer.postFrame(); renderer.postFrame();
// Need to flush GL commands
// to see any result on the pbuffer's front buffer.
GL11.glFlush();
int frameRate = settings.getFrameRate(); int frameRate = settings.getFrameRate();
if (frameRate >= 1) { if (frameRate >= 1) {

Loading…
Cancel
Save