mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Fix fullscreen with stencil. Problem was caused by attempted optimization by using a 16-bit depth buffer.
This commit is contained in:
parent
ea51b11218
commit
5d709e329a
@ -631,7 +631,7 @@ search_for_valid_displaymode(DXScreenData &scrn,
|
||||
}
|
||||
|
||||
bool bIs16bppRenderTgt = IS_16BPP_DISPLAY_FORMAT(dispmode.Format);
|
||||
float RendTgtMinMemReqmt;
|
||||
float RendTgtMinMemReqmt = 0.0f;
|
||||
|
||||
// if we have a valid memavail value, try to determine if we have
|
||||
// enough space
|
||||
@ -703,6 +703,8 @@ search_for_valid_displaymode(DXScreenData &scrn,
|
||||
}
|
||||
}
|
||||
|
||||
// Optimizing for 16-bit depth does not work in all cases so turn it off.
|
||||
if (false) {
|
||||
if ((!bDoMemBasedChecks) || (MinMemReqmt<scrn._max_available_video_memory)) {
|
||||
if (!IS_16BPP_ZBUFFER(zformat)) {
|
||||
// see if things fit with a 16bpp zbuffer
|
||||
@ -725,6 +727,7 @@ search_for_valid_displaymode(DXScreenData &scrn,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bVerboseMode || wdxdisplay8_cat.is_spam())
|
||||
wdxdisplay8_cat.info()
|
||||
|
Loading…
x
Reference in New Issue
Block a user