From d7c679fc44d0c663b5401334220e0c479cca8025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 15 Feb 2016 18:47:04 -0800 Subject: [PATCH] Cleanup. --- src/renderer_gl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 689ee7f0..0feccaf9 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -5047,8 +5047,8 @@ namespace bgfx { namespace gl if (0 == colorIdx) { - m_width = texture.m_width; - m_height = texture.m_height; + m_width = bx::uint32_max(texture.m_width >> m_attachment[ii].mip, 1); + m_height = bx::uint32_max(texture.m_height >> m_attachment[ii].mip, 1); } GLenum attachment = GL_COLOR_ATTACHMENT0 + colorIdx;