summaryrefslogtreecommitdiff
path: root/platform/web/display_server_web.cpp
diff options
context:
space:
mode:
authorClay John <claynjohn@gmail.com>2022-10-23 17:00:01 -0700
committerGitHub <noreply@github.com>2022-10-23 17:00:01 -0700
commit753a182797e28e740c09a0d7c03b94d33946a0f6 (patch)
tree413fa80341f52487fe473f5f7c4c756ebe6ae336 /platform/web/display_server_web.cpp
parenta6fc95cd92dfa5eba0104bbbc6a1f43d30efd2d4 (diff)
parent398ee08375e1acc2354dcb8b9edbf2902a59fcf1 (diff)
Merge pull request #65334 from dsnopek/opengl-multiview
[opengl] Add multiview to the opengl3 driver
Diffstat (limited to 'platform/web/display_server_web.cpp')
-rw-r--r--platform/web/display_server_web.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/web/display_server_web.cpp b/platform/web/display_server_web.cpp
index f6a61b18e4..2ee1edd2b4 100644
--- a/platform/web/display_server_web.cpp
+++ b/platform/web/display_server_web.cpp
@@ -773,6 +773,9 @@ DisplayServerWeb::DisplayServerWeb(const String &p_rendering_driver, WindowMode
if (emscripten_webgl_make_context_current(webgl_ctx) != EMSCRIPTEN_RESULT_SUCCESS) {
webgl2_init_failed = true;
} else {
+ if (!emscripten_webgl_enable_extension(webgl_ctx, "OVR_multiview2")) {
+ // @todo Should we log this?
+ }
RasterizerGLES3::make_current();
}
}