From 350b77091cb5f27317172ce13c2c3b285d23f80e Mon Sep 17 00:00:00 2001 From: Jean-Francois Verdon Date: Fri, 18 Sep 2015 14:16:38 +0200 Subject: [PATCH] Textures created with BackbufferRatio::enum where not sized correctly when bgfx first reset size was different from 1280x720px --- src/bgfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 86323a124..bda36695d 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -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); }