Accepted PR #1596.

This commit is contained in:
Бранимир Караџић 2019-01-21 09:52:21 -08:00
parent 5e31e9aece
commit 34c4d62937

View File

@ -2927,6 +2927,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
width = frameBuffer.m_width; width = frameBuffer.m_width;
height = frameBuffer.m_height; height = frameBuffer.m_height;
} }
m_glctx.makeCurrent(swapChain); m_glctx.makeCurrent(swapChain);
uint32_t length = width*height*4; uint32_t length = width*height*4;
@ -3192,6 +3193,8 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
if (UINT16_MAX != frameBuffer.m_denseIdx) if (UINT16_MAX != frameBuffer.m_denseIdx)
{ {
m_glctx.makeCurrent(frameBuffer.m_swapChain); m_glctx.makeCurrent(frameBuffer.m_swapChain);
GL_CHECK(glFrontFace(GL_CW) );
frameBuffer.m_needPresent = true; frameBuffer.m_needPresent = true;
m_currentFbo = 0; m_currentFbo = 0;
} }