Skip to content

Commit

Permalink
Allow preserveDrawingBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve J. Cai committed Sep 25, 2023
1 parent 221bfe5 commit 94786b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Graphics/GraphicsEngineOpenGL/src/GLContextEmscripten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 94786b3

Please sign in to comment.