0032081: Visualization - WebGL sample errors when run in Safari browser with WebGL 1.0
authorkgv <kgv@opencascade.com>
Fri, 29 Jan 2021 01:59:41 +0000 (04:59 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 29 Jan 2021 16:51:18 +0000 (19:51 +0300)
"MAX_WEBGL_VERSION=2" Emscripten option is now used for building sample instead of deprecated "USE_WEBGL2=1".

samples/webgl/CMakeLists.txt

index bdcb29a..a3d7ef3 100644 (file)
@@ -14,7 +14,7 @@ endif()
 
 # customize build
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s WASM=1")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s USE_WEBGL2=1")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s MAX_WEBGL_VERSION=2")
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s ALLOW_MEMORY_GROWTH=1")
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --bind")
 #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s SAFE_HEAP=1")