|
|
@ -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); |
|
|
|