mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Should NOT call viewport while binding texture

Open whatisor opened this issue 7 months ago • 6 comments

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

None

OS Platform and Distribution

Web

Mobile device if the issue happens on mobile device

No response

Browser and version if the issue happens on browser

No response

Programming Language and version

Typescript

MediaPipe version

master

Bazel version

No response

Solution

Tasks-vision -> ImageSegmenter

Android Studio, NDK, SDK versions (if issue is related to building in Android environment)

No response

Xcode & Tulsi version (if issue is related to building for iOS)

No response

Describe the actual behavior

Calling gl.viewport while binding texture is meaningless. It should be called only when rendering required to avoid affect application code.

Describe the expected behaviour

Bring gl.viewport to outside, to where it needs to render.

Standalone code/steps you may have used to try to get what you need

Other info / Complete Logs

https://github.com/google-ai-edge/mediapipe/blob/70a9f597f342c1875a5080dfbaab50f23ee29fb6/mediapipe/tasks/web/vision/core/mask.ts#L364C5-L364C48

whatisor avatar Mar 12 '25 21:03 whatisor