Explicitly cast at callsite of WebGL context creation to avoid compilation errors with newer Emscripten versions.

PiperOrigin-RevId: 592409915
This commit is contained in:
MediaPipe Team 2023-12-19 19:42:32 -08:00 committed by Copybara-Service
parent 473757c6cc
commit 42aa649aa6

View File

@ -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<EMSCRIPTEN_WEBGL_CONTEXT_HANDLE>(0), create_thread);
}
GlContext::StatusOrGlContext GlContext::Create(const GlContext& share_context,