Explicitly cast at callsite of WebGL context creation to avoid compilation errors with newer Emscripten versions.
PiperOrigin-RevId: 592409915
This commit is contained in:
parent
473757c6cc
commit
42aa649aa6
|
@ -32,7 +32,7 @@ namespace mediapipe {
|
||||||
// TODO: Handle webGL "context lost" and "context restored" events.
|
// TODO: Handle webGL "context lost" and "context restored" events.
|
||||||
GlContext::StatusOrGlContext GlContext::Create(std::nullptr_t nullp,
|
GlContext::StatusOrGlContext GlContext::Create(std::nullptr_t nullp,
|
||||||
bool create_thread) {
|
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,
|
GlContext::StatusOrGlContext GlContext::Create(const GlContext& share_context,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user