mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
remove make_current() from flip
This commit is contained in:
parent
2bf87f010a
commit
a6df37d6b0
@ -142,7 +142,13 @@ begin_frame() {
|
||||
void glxGraphicsWindow::
|
||||
begin_flip() {
|
||||
if (_gsg != (GraphicsStateGuardian *)NULL) {
|
||||
make_current();
|
||||
|
||||
// It doesn't appear to be necessary to ensure the graphics
|
||||
// context is current before flipping the windows, and insisting
|
||||
// on doing so can be a significant performance hit.
|
||||
|
||||
// make_current();
|
||||
|
||||
glXSwapBuffers(_display, _xwindow);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user