From 34c4d62937a56aa1b5e7037cc7d6cd63f61dca4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Mon, 21 Jan 2019 09:52:21 -0800 Subject: [PATCH] Accepted PR #1596. --- src/renderer_gl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index ee6143a91..9bbb15e3f 100644 --- a/src/renderer_gl.cpp +++ b/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; }