mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed framebuffer size.
This commit is contained in:
parent
7ad942b14b
commit
cf940331d6
1 changed files with 6 additions and 6 deletions
|
@ -2158,6 +2158,12 @@ namespace bgfx
|
|||
{
|
||||
const Texture& texture = s_renderCtx->m_textures[handle.idx];
|
||||
|
||||
if (0 == colorIdx)
|
||||
{
|
||||
m_width = texture.m_width;
|
||||
m_height = texture.m_height;
|
||||
}
|
||||
|
||||
GLenum attachment = GL_COLOR_ATTACHMENT0 + colorIdx;
|
||||
if (isDepth( (TextureFormat::Enum)texture.m_textureFormat) )
|
||||
{
|
||||
|
@ -2168,12 +2174,6 @@ namespace bgfx
|
|||
++colorIdx;
|
||||
}
|
||||
|
||||
if (0 == colorIdx)
|
||||
{
|
||||
m_width = texture.m_width;
|
||||
m_height = texture.m_height;
|
||||
}
|
||||
|
||||
if (0 != texture.m_rbo)
|
||||
{
|
||||
GL_CHECK(glFramebufferRenderbuffer(GL_FRAMEBUFFER
|
||||
|
|
Loading…
Reference in a new issue