From 4fd703f821b430a16db8d7d2eca7aef4c0c84dda Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Thu, 9 Apr 2020 05:58:24 +0200 Subject: [PATCH] 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. --- cmake/libsuperderpy.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/libsuperderpy.cmake b/cmake/libsuperderpy.cmake index b3988da..2769a14 100644 --- a/cmake/libsuperderpy.cmake +++ b/cmake/libsuperderpy.cmake @@ -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)