|
|
@@ -2129,9 +2129,9 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
|
|
|
uint32_t flags = _resolution.m_flags & ~(BGFX_RESET_HMD_RECENTER | BGFX_RESET_MAXANISOTROPY);
|
|
|
|
|
|
- if ( getBufferWidth() != _resolution.m_width
|
|
|
- || getBufferHeight() != _resolution.m_height
|
|
|
- || m_resolution.m_flags != flags)
|
|
|
+ if (m_resolution.m_width != _resolution.m_width
|
|
|
+ || m_resolution.m_height != _resolution.m_height
|
|
|
+ || m_resolution.m_flags != flags)
|
|
|
{
|
|
|
flags &= ~BGFX_RESET_FORCE;
|
|
|
|
|
|
@@ -2140,12 +2140,12 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
&& (m_resolution.m_flags&BGFX_RESET_MSAA_MASK) == (flags&BGFX_RESET_MSAA_MASK)
|
|
|
;
|
|
|
|
|
|
- m_textVideoMem.resize(false, _resolution.m_width, _resolution.m_height);
|
|
|
- m_textVideoMem.clear();
|
|
|
-
|
|
|
m_resolution = _resolution;
|
|
|
m_resolution.m_flags = flags;
|
|
|
|
|
|
+ m_textVideoMem.resize(false, _resolution.m_width, _resolution.m_height);
|
|
|
+ m_textVideoMem.clear();
|
|
|
+
|
|
|
setBufferSize(_resolution.m_width, _resolution.m_height);
|
|
|
|
|
|
preReset();
|