Бранимир Караџић пре 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;
 				height = frameBuffer.m_height;
 			}
+
 			m_glctx.makeCurrent(swapChain);
 
 			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)
 				{
 					m_glctx.makeCurrent(frameBuffer.m_swapChain);
+					GL_CHECK(glFrontFace(GL_CW) );
+
 					frameBuffer.m_needPresent = true;
 					m_currentFbo = 0;
 				}