From a6df37d6b00b454312845d5f15ad95bf55dbb1bf Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 28 Feb 2004 00:26:18 +0000 Subject: [PATCH] remove make_current() from flip --- panda/src/glxdisplay/glxGraphicsWindow.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/panda/src/glxdisplay/glxGraphicsWindow.cxx b/panda/src/glxdisplay/glxGraphicsWindow.cxx index 287bb86822..245cdfedd3 100644 --- a/panda/src/glxdisplay/glxGraphicsWindow.cxx +++ b/panda/src/glxdisplay/glxGraphicsWindow.cxx @@ -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); } }