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")