From 9d851412272461ec1db1cb190bb10fe41eb32b99 Mon Sep 17 00:00:00 2001 From: Chris McClanahan Date: Fri, 22 Sep 2023 15:04:15 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 567726262 --- .../calculators/tensor/image_to_tensor_converter_gl_texture.cc | 1 + mediapipe/calculators/tensor/tensor_converter_calculator.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/mediapipe/calculators/tensor/image_to_tensor_converter_gl_texture.cc b/mediapipe/calculators/tensor/image_to_tensor_converter_gl_texture.cc index 465e7e0bc..5604aea8f 100644 --- a/mediapipe/calculators/tensor/image_to_tensor_converter_gl_texture.cc +++ b/mediapipe/calculators/tensor/image_to_tensor_converter_gl_texture.cc @@ -304,6 +304,7 @@ class GlProcessor : public ImageToTensorConverter { glBindTexture(GL_TEXTURE_2D, 0); glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, 0); + glFlush(); return absl::OkStatus(); } diff --git a/mediapipe/calculators/tensor/tensor_converter_calculator.cc b/mediapipe/calculators/tensor/tensor_converter_calculator.cc index f8268f3d2..e86436589 100644 --- a/mediapipe/calculators/tensor/tensor_converter_calculator.cc +++ b/mediapipe/calculators/tensor/tensor_converter_calculator.cc @@ -406,6 +406,7 @@ absl::Status TensorConverterCalculator::ProcessGPU(CalculatorContext* cc) { glActiveTexture(GL_TEXTURE1); glBindTexture(GL_TEXTURE_2D, 0); #endif // MEDIAPIPE_OPENGL_ES_VERSION >= MEDIAPIPE_OPENGL_ES_31 + glFlush(); src.Release(); return absl::OkStatus(); }));