浏览代码

Accepted PR #1596.

Бранимир Караџић 7 年之前
父节点
当前提交
34c4d62937
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/renderer_gl.cpp

+ 3 - 0
src/renderer_gl.cpp

@@ -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;
 				}
 				}