mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Fall back to depth textures when depth-stencil textures aren't supported
This commit is contained in:
parent
07ea84a1a0
commit
96de270320
@ -381,6 +381,10 @@ rebuild_bitplanes() {
|
||||
// buffer was requested.
|
||||
_use_depth_stencil = true;
|
||||
}
|
||||
} else if (attach[RTP_depth_stencil] != NULL && attach[RTP_depth] == NULL) {
|
||||
// The depth stencil slot was assigned a texture, but we don't support it.
|
||||
// Downgrade to a regular depth texture.
|
||||
swap(attach[RTP_depth], attach[RTP_depth_stencil]);
|
||||
}
|
||||
|
||||
// Knowing this, we can already be a tiny bit more accurate about the
|
||||
|
Loading…
x
Reference in New Issue
Block a user