From 94786b3e8fb5c4231b550a84970e5b767d0d1429 Mon Sep 17 00:00:00 2001 From: "Steve J. Cai" Date: Mon, 25 Sep 2023 06:04:15 +0000 Subject: [PATCH] Allow preserveDrawingBuffer --- Graphics/GraphicsEngineOpenGL/src/GLContextEmscripten.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Graphics/GraphicsEngineOpenGL/src/GLContextEmscripten.cpp b/Graphics/GraphicsEngineOpenGL/src/GLContextEmscripten.cpp index fa5edb610e..0d7556fb5f 100644 --- a/Graphics/GraphicsEngineOpenGL/src/GLContextEmscripten.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/GLContextEmscripten.cpp @@ -44,6 +44,7 @@ GLContext::GLContext(const EngineGLCreateInfo& InitAttribs, RENDER_DEVICE_TYPE& ContextAttributes.depth = true; ContextAttributes.majorVersion = 3; ContextAttributes.minorVersion = 0; + ContextAttributes.preserveDrawingBuffer = true; m_GLContext = emscripten_webgl_create_context(InitAttribs.Window.pCanvasId, &ContextAttributes); if (m_GLContext == 0)