mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
hwr2 gl3core: Fix FBO depth attachment
This commit is contained in:
parent
095aa635b0
commit
7db8b7d20c
1 changed files with 2 additions and 2 deletions
|
|
@ -1086,7 +1086,7 @@ void GlCoreRhi::begin_render_pass(Handle<GraphicsContext> ctx, const RenderPassB
|
|||
{
|
||||
SRB2_ASSERT(texture_slab_.is_valid(handle));
|
||||
auto& texture = texture_slab_[handle];
|
||||
gl_->FramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.texture, 0);
|
||||
gl_->FramebufferTexture2D(GL_FRAMEBUFFER, attachment, GL_TEXTURE_2D, texture.texture, 0);
|
||||
GL_ASSERT
|
||||
},
|
||||
[&, this](const Handle<Renderbuffer>& handle)
|
||||
|
|
@ -1095,7 +1095,7 @@ void GlCoreRhi::begin_render_pass(Handle<GraphicsContext> ctx, const RenderPassB
|
|||
auto& renderbuffer = renderbuffer_slab_[handle];
|
||||
gl_->FramebufferRenderbuffer(
|
||||
GL_FRAMEBUFFER,
|
||||
GL_COLOR_ATTACHMENT0,
|
||||
attachment,
|
||||
GL_RENDERBUFFER,
|
||||
renderbuffer.renderbuffer
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue