Flush GL pipeline for pbuffer after frame (required because there's no backbuffer)
This commit is contained in:
parent
82901bb486
commit
b04c4ad042
@ -126,6 +126,10 @@ public class LwjglOffscreenBuffer extends LwjglContext implements Runnable {
|
||||
checkGLError();
|
||||
|
||||
renderer.postFrame();
|
||||
|
||||
// Need to flush GL commands
|
||||
// to see any result on the pbuffer's front buffer.
|
||||
GL11.glFlush();
|
||||
|
||||
int frameRate = settings.getFrameRate();
|
||||
if (frameRate >= 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user