diff --git a/panda/src/dxgsg8/wdxGraphicsWindow8.cxx b/panda/src/dxgsg8/wdxGraphicsWindow8.cxx index 6759523651..b7f71c12d2 100644 --- a/panda/src/dxgsg8/wdxGraphicsWindow8.cxx +++ b/panda/src/dxgsg8/wdxGraphicsWindow8.cxx @@ -254,7 +254,6 @@ begin_frame() { void wdxGraphicsWindow8:: end_flip() { if (_dxgsg != (DXGraphicsStateGuardian8 *)NULL && is_active()) { - make_current(); // wdxdisplay8_cat.debug() << "current swapchain from end_flip is " << _wcontext.pSwapChain << "\n"; _dxgsg->show_frame(); } diff --git a/panda/src/dxgsg9/wdxGraphicsWindow9.cxx b/panda/src/dxgsg9/wdxGraphicsWindow9.cxx index b6802a7306..f290308f0c 100755 --- a/panda/src/dxgsg9/wdxGraphicsWindow9.cxx +++ b/panda/src/dxgsg9/wdxGraphicsWindow9.cxx @@ -255,7 +255,6 @@ begin_frame() { void wdxGraphicsWindow9:: end_flip() { if (_dxgsg != (DXGraphicsStateGuardian9 *)NULL && is_active()) { - make_current(); //wdxdisplay9_cat.debug() << "current swapchain from end_flip is " << _wcontext.pSwapChain << "\n"; _dxgsg->show_frame(); } diff --git a/panda/src/wgldisplay/wglGraphicsWindow.cxx b/panda/src/wgldisplay/wglGraphicsWindow.cxx index 2078df7abf..9eb17eb8ab 100644 --- a/panda/src/wgldisplay/wglGraphicsWindow.cxx +++ b/panda/src/wgldisplay/wglGraphicsWindow.cxx @@ -208,7 +208,11 @@ begin_flip() { // calling SwapBuffers() on a Matrix card, we crash a horrible // death. This is a pity since make_current() seems unnecessary // on other cards, and does incur some performance overhead. - make_current(); + + // Let's see if this is still necessary now that we guarantee + // begin_flip() is not called until end_frame() has successfully + // rendered. + //make_current(); SwapBuffers(_hdc); }