mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
glFlush() might be necessary
This commit is contained in:
parent
d1b921ee1a
commit
b0de5200b0
@ -616,6 +616,13 @@ begin_frame() {
|
|||||||
void CLP(GraphicsStateGuardian)::
|
void CLP(GraphicsStateGuardian)::
|
||||||
end_frame() {
|
end_frame() {
|
||||||
GraphicsStateGuardian::end_frame();
|
GraphicsStateGuardian::end_frame();
|
||||||
|
|
||||||
|
// Calling glFlush() at the end of the frame is particularly
|
||||||
|
// necessary if this is a single-buffered visual, so that the frame
|
||||||
|
// will be finished drawing before we return to the application.
|
||||||
|
// It's not clear what effect this has on our total frame time.
|
||||||
|
GLP(Flush)();
|
||||||
|
|
||||||
report_my_gl_errors();
|
report_my_gl_errors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user