diff OrthancStone/Sources/OpenGL/WebAssemblyOpenGLContext.cpp @ 1578:1f812f4c95be

comments
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Sep 2020 17:20:36 +0200
parents 92fca2b3ba3d
children
line wrap: on
line diff
--- a/OrthancStone/Sources/OpenGL/WebAssemblyOpenGLContext.cpp	Thu Sep 24 16:51:14 2020 +0200
+++ b/OrthancStone/Sources/OpenGL/WebAssemblyOpenGLContext.cpp	Thu Sep 24 17:20:36 2020 +0200
@@ -50,13 +50,11 @@
         EmscriptenWebGLContextAttributes attr; 
         emscripten_webgl_init_context_attributes(&attr);
 
-#if 1
-        // The next line might be necessary to print on Firefox 71
-        // using WebGL. Sometimes, if set to "false" (the default
-        // value), the canvas was rendered as a fully white or black
-        // area. UNCONFIRMED, so disabled.
+        // The next line might be necessary to print using
+        // WebGL. Sometimes, if set to "false" (the default value),
+        // the canvas was rendered as a fully white or black
+        // area. UNCONFIRMED.
         attr.preserveDrawingBuffer = true;
-#endif
 
         context_ = emscripten_webgl_create_context(canvasSelector.c_str(), &attr);
         if (context_ == 0)