emscripten: Don't use WebGL2 contexts by default

The only thing it usually brings us is support for bigger texture sizes.
Games that rely on that can enable WebGL2 explicitly.
This commit is contained in:
Sebastian Krzyszkowiak 2020-04-09 05:58:24 +02:00
parent 4980be9e32
commit 4fd703f821
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -294,7 +294,7 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
set(CMAKE_SHARED_MODULE_SUFFIX ".js")
endif()
option(LIBSUPERDERPY_USE_WEBGL2 "Use WebGL 2 context" ON)
option(LIBSUPERDERPY_USE_WEBGL2 "Use WebGL 2 context" OFF)
if(LIBSUPERDERPY_USE_WEBGL2)
set(EMSCRIPTEN_FLAGS ${EMSCRIPTEN_FLAGS} -s USE_WEBGL2=1)
endif(LIBSUPERDERPY_USE_WEBGL2)