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

@ -127,6 +127,10 @@ public class LwjglOffscreenBuffer extends LwjglContext implements Runnable {
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) {
Display.sync(frameRate); Display.sync(frameRate);

Loading…
Cancel
Save