We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a866f9f commit 84520ceCopy full SHA for 84520ce
panda/src/display/frameBufferProperties.cxx
@@ -581,9 +581,13 @@ get_quality(const FrameBufferProperties &reqs) const {
581
}
582
583
584
- // Bonus for each depth bit. Extra: 2 per bit.
+ // Bonus for each depth bit. Extra: 8 per bit.
585
+ // Please note that the Intel Windows driver only gives extra depth in
586
+ // combination with a stencil buffer, so we need 8 extra depth bits to
587
+ // outweigh the penalty of 50 for the unwanted stencil buffer, otherwise we
588
+ // will end up only getting 16-bit depth.
589
if (reqs._property[FBP_depth_bits] != 0) {
- quality += 2 * _property[FBP_depth_bits];
590
+ quality += 8 * _property[FBP_depth_bits];
591
592
593
// Bonus for each multisample. Extra: 2 per sample.
0 commit comments