From 42aa649aa6280d77a8af443cf5f577271e53bc58 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Tue, 19 Dec 2023 19:42:32 -0800 Subject: [PATCH] Explicitly cast at callsite of WebGL context creation to avoid compilation errors with newer Emscripten versions. PiperOrigin-RevId: 592409915 --- mediapipe/gpu/gl_context_webgl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediapipe/gpu/gl_context_webgl.cc b/mediapipe/gpu/gl_context_webgl.cc index 0f14581b6..7560fca09 100644 --- a/mediapipe/gpu/gl_context_webgl.cc +++ b/mediapipe/gpu/gl_context_webgl.cc @@ -32,7 +32,7 @@ namespace mediapipe { // TODO: Handle webGL "context lost" and "context restored" events. GlContext::StatusOrGlContext GlContext::Create(std::nullptr_t nullp, bool create_thread) { - return Create(0, create_thread); + return Create(static_cast(0), create_thread); } GlContext::StatusOrGlContext GlContext::Create(const GlContext& share_context,