mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:27:48 +02:00
ApplicationOveraly: Fix for gray line at top of HMD UI overlay
This commit is contained in:
parent
8420e67b54
commit
ea95295e66
1 changed files with 2 additions and 1 deletions
|
@ -284,7 +284,8 @@ void ApplicationOverlay::buildFramebufferObject() {
|
||||||
|
|
||||||
// If the overlay framebuffer still has no color attachment, no textures were available for rendering, so build a new one
|
// If the overlay framebuffer still has no color attachment, no textures were available for rendering, so build a new one
|
||||||
if (!_overlayFramebuffer->getRenderBuffer(0)) {
|
if (!_overlayFramebuffer->getRenderBuffer(0)) {
|
||||||
auto colorBuffer = gpu::TexturePointer(gpu::Texture::create2D(COLOR_FORMAT, width, height, DEFAULT_SAMPLER));
|
const gpu::Sampler OVERLAY_SAMPLER(gpu::Sampler::FILTER_MIN_MAG_LINEAR, gpu::Sampler::WRAP_CLAMP);
|
||||||
|
auto colorBuffer = gpu::TexturePointer(gpu::Texture::create2D(COLOR_FORMAT, width, height, OVERLAY_SAMPLER));
|
||||||
_overlayFramebuffer->setRenderBuffer(0, colorBuffer);
|
_overlayFramebuffer->setRenderBuffer(0, colorBuffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue