Skip to content

Commit 84520ce

Browse files
committed
display: prefer 24-bit depth buffer on Intel over 16-bit
1 parent a866f9f commit 84520ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

panda/src/display/frameBufferProperties.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,13 @@ get_quality(const FrameBufferProperties &reqs) const {
581581
}
582582
}
583583

584-
// Bonus for each depth bit. Extra: 2 per bit.
584+
// 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.
585589
if (reqs._property[FBP_depth_bits] != 0) {
586-
quality += 2 * _property[FBP_depth_bits];
590+
quality += 8 * _property[FBP_depth_bits];
587591
}
588592

589593
// Bonus for each multisample. Extra: 2 per sample.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy