From: kgv Date: Fri, 29 Jan 2021 01:59:41 +0000 (+0300) Subject: 0032081: Visualization - WebGL sample errors when run in Safari browser with WebGL 1.0 X-Git-Tag: V7_6_0_beta~286 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a0073def2d20db242f2d249a8887a6f34e1fcf36;p=occt.git 0032081: Visualization - WebGL sample errors when run in Safari browser with WebGL 1.0 "MAX_WEBGL_VERSION=2" Emscripten option is now used for building sample instead of deprecated "USE_WEBGL2=1". --- diff --git a/samples/webgl/CMakeLists.txt b/samples/webgl/CMakeLists.txt index bdcb29aa7b..a3d7ef3052 100644 --- a/samples/webgl/CMakeLists.txt +++ b/samples/webgl/CMakeLists.txt @@ -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")