Merge branch 'master' of cane:bkaradzic/bgfx

This commit is contained in:
Branimir Karadžić 2015-01-20 21:42:01 -08:00
commit a7756b8d7a
3 changed files with 8 additions and 8 deletions

View File

@ -1851,7 +1851,7 @@ static void LogText(const ImVec2& ref_pos, const char* text, const char* text_en
if (g.LogStartDepth > window->DC.TreeDepth) // Re-adjust padding if we have popped out of our starting depth
g.LogStartDepth = window->DC.TreeDepth;
const int tree_depth = (window->DC.TreeDepth - g.LogStartDepth);
while (true)
for (;;)
{
// Split the string. Each new line (after a '\n') is followed by spacing corresponding to the current depth of our log entry.
const char* line_end = text_remaining;
@ -7724,7 +7724,7 @@ struct ExampleAppConsole
{
// Multiple matches. Complete as much as we can, so inputing "C" will complete to "CL" and display "CLEAR" and "CLASSIFY"
int match_len = (int)(word_end - word_start);
while (true)
for (;;)
{
int c = 0;
bool all_candidates_matches = true;

View File

@ -246,8 +246,8 @@ int _main_(int /*_argc*/, char** /*_argv*/)
bgfx::setUniform(u_params, &u_paramsData, 3);
bgfx::dispatch(0, updateInstancesProgram, u_paramsData.dispatchSize, 1, 1);
bx::swap(currPositionBuffer0, currPositionBuffer1);
bx::swap(prevPositionBuffer0, prevPositionBuffer1);
bx::xchg(currPositionBuffer0, currPositionBuffer1);
bx::xchg(prevPositionBuffer0, prevPositionBuffer1);
float view[16];

View File

@ -1852,10 +1852,10 @@ namespace bgfx
texture.D3D11.pSRView = m_ovrRT.m_srv;
m_ovr.postReset(texture.Texture);
bx::swap(m_ovrRtv, m_backBufferColor);
bx::xchg(m_ovrRtv, m_backBufferColor);
BX_CHECK(NULL == m_backBufferDepthStencil, "");
bx::swap(m_ovrDsv, m_backBufferDepthStencil);
bx::xchg(m_ovrDsv, m_backBufferDepthStencil);
}
}
#endif // BGFX_CONFIG_USE_OVR
@ -1867,8 +1867,8 @@ namespace bgfx
m_ovr.preReset();
if (NULL != m_ovrRtv)
{
bx::swap(m_ovrRtv, m_backBufferColor);
bx::swap(m_ovrDsv, m_backBufferDepthStencil);
bx::xchg(m_ovrRtv, m_backBufferColor);
bx::xchg(m_ovrDsv, m_backBufferDepthStencil);
BX_CHECK(NULL == m_backBufferDepthStencil, "");
DX_RELEASE(m_ovrRtv, 0);