mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
remove make_current() from flip
This commit is contained in:
parent
2bf87f010a
commit
a6df37d6b0
@ -142,7 +142,13 @@ begin_frame() {
|
|||||||
void glxGraphicsWindow::
|
void glxGraphicsWindow::
|
||||||
begin_flip() {
|
begin_flip() {
|
||||||
if (_gsg != (GraphicsStateGuardian *)NULL) {
|
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);
|
glXSwapBuffers(_display, _xwindow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user