mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 19:50:38 +02:00
Merge pull request #15966 from jherico/fix/bugz-987
BUGZ-987: fix depth testing of HUD layer 3D objects
This commit is contained in:
commit
849a25f576
3 changed files with 4 additions and 1 deletions
|
@ -40,6 +40,8 @@ const Element Element::COLOR_COMPRESSED_EAC_RED_SIGNED { TILE4x4, COMPRESSED, CO
|
||||||
const Element Element::COLOR_COMPRESSED_EAC_XY { TILE4x4, COMPRESSED, COMPRESSED_EAC_XY };
|
const Element Element::COLOR_COMPRESSED_EAC_XY { TILE4x4, COMPRESSED, COMPRESSED_EAC_XY };
|
||||||
const Element Element::COLOR_COMPRESSED_EAC_XY_SIGNED { TILE4x4, COMPRESSED, COMPRESSED_EAC_XY_SIGNED };
|
const Element Element::COLOR_COMPRESSED_EAC_XY_SIGNED { TILE4x4, COMPRESSED, COMPRESSED_EAC_XY_SIGNED };
|
||||||
|
|
||||||
|
const Element Element::DEPTH24_STENCIL8 { SCALAR, UINT32, DEPTH_STENCIL };
|
||||||
|
|
||||||
const Element Element::VEC2NU8_XY{ VEC2, NUINT8, XY };
|
const Element Element::VEC2NU8_XY{ VEC2, NUINT8, XY };
|
||||||
|
|
||||||
const Element Element::COLOR_R11G11B10{ SCALAR, FLOAT, R11G11B10 };
|
const Element Element::COLOR_R11G11B10{ SCALAR, FLOAT, R11G11B10 };
|
||||||
|
|
|
@ -358,6 +358,7 @@ public:
|
||||||
static const Element COLOR_COMPRESSED_EAC_RED_SIGNED;
|
static const Element COLOR_COMPRESSED_EAC_RED_SIGNED;
|
||||||
static const Element COLOR_COMPRESSED_EAC_XY;
|
static const Element COLOR_COMPRESSED_EAC_XY;
|
||||||
static const Element COLOR_COMPRESSED_EAC_XY_SIGNED;
|
static const Element COLOR_COMPRESSED_EAC_XY_SIGNED;
|
||||||
|
static const Element DEPTH24_STENCIL8;
|
||||||
static const Element VEC2NU8_XY;
|
static const Element VEC2NU8_XY;
|
||||||
static const Element VEC4F_COLOR_RGBA;
|
static const Element VEC4F_COLOR_RGBA;
|
||||||
static const Element VEC2F_UV;
|
static const Element VEC2F_UV;
|
||||||
|
|
|
@ -38,7 +38,7 @@ void FramebufferCache::createPrimaryFramebuffer() {
|
||||||
gpu::FramebufferPointer FramebufferCache::getFramebuffer() {
|
gpu::FramebufferPointer FramebufferCache::getFramebuffer() {
|
||||||
std::unique_lock<std::mutex> lock(_mutex);
|
std::unique_lock<std::mutex> lock(_mutex);
|
||||||
if (_cachedFramebuffers.empty()) {
|
if (_cachedFramebuffers.empty()) {
|
||||||
_cachedFramebuffers.push_back(gpu::FramebufferPointer(gpu::Framebuffer::create("cached", gpu::Element::COLOR_SRGBA_32, _frameBufferSize.width(), _frameBufferSize.height())));
|
_cachedFramebuffers.push_back(gpu::FramebufferPointer(gpu::Framebuffer::create("cached", gpu::Element::COLOR_SRGBA_32, gpu::Element::DEPTH24_STENCIL8, _frameBufferSize.width(), _frameBufferSize.height())));
|
||||||
}
|
}
|
||||||
gpu::FramebufferPointer result = _cachedFramebuffers.front();
|
gpu::FramebufferPointer result = _cachedFramebuffers.front();
|
||||||
_cachedFramebuffers.pop_front();
|
_cachedFramebuffers.pop_front();
|
||||||
|
|
Loading…
Reference in a new issue