Textures created with BackbufferRatio::enum where not sized correctly when bgfx first reset size was different from 1280x720px

This commit is contained in:
Jean-Francois Verdon 2015-09-18 14:16:38 +02:00
parent f05443c0e7
commit 350b77091c

View File

@ -2674,8 +2674,8 @@ again:
if (BackbufferRatio::Count != _ratio)
{
_width = uint16_t(s_ctx->m_frame->m_resolution.m_width);
_height = uint16_t(s_ctx->m_frame->m_resolution.m_height);
_width = uint16_t(s_ctx->m_resolution.m_width);
_height = uint16_t(s_ctx->m_resolution.m_height);
getTextureSizeFromRatio(_ratio, _width, _height);
}