mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
make_current() should be unneeded before flip
This commit is contained in:
parent
a39aa8f71c
commit
baea752ded
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user