mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
GL: Fixed MSAA + stencil.
This commit is contained in:
parent
1f7152cfc5
commit
32ed7f5bf6
1 changed files with 2 additions and 2 deletions
|
@ -1593,8 +1593,8 @@ namespace bgfx
|
||||||
GL_CHECK(glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, m_msaaBackBufferRbos[0]) );
|
GL_CHECK(glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, m_msaaBackBufferRbos[0]) );
|
||||||
|
|
||||||
GLenum attachment = BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL) || BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGLES >= 30)
|
GLenum attachment = BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL) || BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGLES >= 30)
|
||||||
? GL_DEPTH_ATTACHMENT
|
? GL_DEPTH_STENCIL_ATTACHMENT
|
||||||
: GL_DEPTH_STENCIL_ATTACHMENT
|
: GL_DEPTH_ATTACHMENT
|
||||||
;
|
;
|
||||||
GL_CHECK(glFramebufferRenderbuffer(GL_FRAMEBUFFER, attachment, GL_RENDERBUFFER, m_msaaBackBufferRbos[1]) );
|
GL_CHECK(glFramebufferRenderbuffer(GL_FRAMEBUFFER, attachment, GL_RENDERBUFFER, m_msaaBackBufferRbos[1]) );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue